From patchwork Tue Aug 16 05:15:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1070292 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7G5GJEj006292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 16 Aug 2011 05:16:40 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QtC0O-0006an-Kr; Tue, 16 Aug 2011 05:16:00 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QtC0O-0005bo-5G; Tue, 16 Aug 2011 05:16:00 +0000 Received: from mail-gy0-f177.google.com ([209.85.160.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QtC0L-0005bV-5G for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2011 05:15:58 +0000 Received: by gyh20 with SMTP id 20so3830697gyh.36 for ; Mon, 15 Aug 2011 22:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=dpX32irqMs8uISZtwxkDKziBXAiEg7La5xEXeJCt6tY=; b=oOR5mG70M4DdoKNsQ2kQnzsTISKJzYL3Rmu2QhLySx2i1aB5Ww8TNmmXXjtAdG1mXz u5reod4QhmzOE/N2wHI88HmX3wUnY5053Q1+Tou5jbIxndp9o3U8owskr3b1g8JNquZB yaBzhWUHqLzJUxzG73jDgCab5nWSnzvGF48UY= Received: by 10.236.77.71 with SMTP id c47mr14640671yhe.77.1313471753171; Mon, 15 Aug 2011 22:15:53 -0700 (PDT) Received: from [218.172.239.250] (218-172-239-250.dynamic.hinet.net [218.172.239.250]) by mx.google.com with ESMTPS id o2sm874044yhl.71.2011.08.15.22.15.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Aug 2011 22:15:52 -0700 (PDT) Subject: [PATCH] ARM: tegra: Add missing include of linux/erron.h and linux/types.h From: Axel Lin To: linux-kernel@vger.kernel.org Date: Tue, 16 Aug 2011 13:15:44 +0800 Message-ID: <1313471744.5824.2.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110816_011557_596820_2A778D05 X-CRM114-Status: GOOD ( 14.26 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (axel.lin[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.177 listed in list.dnswl.org] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL To: misformatted and free email service Cc: Russell King , Erik Gilling , linux-tegra@vger.kernel.org, Colin Cross , Olof Johansson , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 16 Aug 2011 05:16:41 +0000 (UTC) Include linux/erron.h to fix below build error. CC arch/arm/mach-tegra/board-harmony-pinmux.o In file included from /home/axel/repos/git/linux-2.6/arch/arm/include/asm/gpio.h:5, from include/linux/gpio.h:18, from arch/arm/mach-tegra/board-harmony-pinmux.c:18: arch/arm/mach-tegra/include/mach/gpio.h: In function 'gpio_to_irq': arch/arm/mach-tegra/include/mach/gpio.h:35: error: 'EINVAL' undeclared (first use in this function) arch/arm/mach-tegra/include/mach/gpio.h:35: error: (Each undeclared identifier is reported only once arch/arm/mach-tegra/include/mach/gpio.h:35: error: for each function it appears in.) arch/arm/mach-tegra/include/mach/gpio.h: In function 'irq_to_gpio': arch/arm/mach-tegra/include/mach/gpio.h:43: error: 'EINVAL' undeclared (first use in this function) make[1]: *** [arch/arm/mach-tegra/board-harmony-pinmux.o] Error 1 make: *** [arch/arm/mach-tegra] Error 2 Include linux/types.h to fix below build error. CC arch/arm/mach-tegra/board-trimslice-pinmux.o In file included from /home/axel/repos/git/linux-2.6/arch/arm/include/asm/gpio.h:5, from include/linux/gpio.h:18, from arch/arm/mach-tegra/board-trimslice-pinmux.c:16: arch/arm/mach-tegra/include/mach/gpio.h:49: error: expected specifier-qualifier-list before 'bool' arch/arm/mach-tegra/board-trimslice-pinmux.c:145: error: unknown field 'enable' specified in initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:145: warning: excess elements in struct initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:145: warning: (near initialization for 'gpio_table[0]') arch/arm/mach-tegra/board-trimslice-pinmux.c:146: error: unknown field 'enable' specified in initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:146: warning: excess elements in struct initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:146: warning: (near initialization for 'gpio_table[1]') arch/arm/mach-tegra/board-trimslice-pinmux.c:148: error: unknown field 'enable' specified in initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:148: warning: excess elements in struct initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:148: warning: (near initialization for 'gpio_table[2]') arch/arm/mach-tegra/board-trimslice-pinmux.c:149: error: unknown field 'enable' specified in initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:149: warning: excess elements in struct initializer arch/arm/mach-tegra/board-trimslice-pinmux.c:149: warning: (near initialization for 'gpio_table[3]') make[1]: *** [arch/arm/mach-tegra/board-trimslice-pinmux.o] Error 1 make: *** [arch/arm/mach-tegra] Error 2 Signed-off-by: Axel Lin --- This patch is against linux-next (next-20110815), it fixes the build error with "make tegra_defconfig". Axel arch/arm/mach-tegra/include/mach/gpio.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-tegra/include/mach/gpio.h b/arch/arm/mach-tegra/include/mach/gpio.h index e353805..42f3f08 100644 --- a/arch/arm/mach-tegra/include/mach/gpio.h +++ b/arch/arm/mach-tegra/include/mach/gpio.h @@ -21,6 +21,8 @@ #define __MACH_TEGRA_GPIO_H #include +#include +#include #include #define TEGRA_NR_GPIOS INT_GPIO_NR