From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753759AbbCBKBb (ORCPT ); Mon, 2 Mar 2015 05:01:31 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:52371 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753372AbbCBKB1 (ORCPT ); Mon, 2 Mar 2015 05:01:27 -0500 From: Arnd Bergmann To: Olof Johansson Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bill Richardson , Javier Martinez Canillas , Gwendal Grignou Subject: [PATCH] platform/chrome: add missing include in cros_ec_lpc driver Date: Mon, 02 Mar 2015 11:01:17 +0100 Message-ID: <6172990.aK27bmg5kF@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:79Yqy/Txs6daP0wZbrp9rRfrCaNOFXTeCS7xCIThUN8Cfm1dyK9 C4VjwfTQBnTYkOrYqBlRwWVsQV3fLWqoYgJfNsbucg8Do+HOcSsoR0+gSCZ+TslM4f5BE+K 4A3vvAvkPVDSHCwhSo9jqDywEvebZeTizMhAn5naOo74zYazgg6WUxKbreccGfcgEKKf8hS HMJvOhN6m1j7B3N963lkg== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added cros_ec_lpc driver is meant for x86 but can also be built on other architectures. However, the original version causes a compile error when built on ARM because of a missing #include: drivers/platform/chrome/cros_ec_lpc.c: In function 'ec_response_timed_out': drivers/platform/chrome/cros_ec_lpc.c:40:3: error: implicit declaration of function 'inb' [-Werror=implicit-function-declaration] if (!(inb(EC_LPC_ADDR_HOST_CMD) & EC_LPC_STATUS_BUSY_MASK)) ^ This includes linux/io.h to make it compile reliably. Signed-off-by: Arnd Bergmann Fixes: ec2f33ab582bf ("platform/chrome: Add cros_ec_lpc driver for x86 devices") Cc: Bill Richardson Cc: Javier Martinez Canillas Cc: Gwendal Grignou Cc: Olof Johansson diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 822fdb36ded9..f00bf4d246a1 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include