From patchwork Tue Aug 16 05:25:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1070352 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 p7G5PkQb020898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 16 Aug 2011 05:26:07 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QtC9S-0007VA-Cd; Tue, 16 Aug 2011 05:25:22 +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 1QtC9R-0005lW-TD; Tue, 16 Aug 2011 05:25:21 +0000 Received: from mail-yi0-f49.google.com ([209.85.218.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QtC9O-0005lD-7e for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2011 05:25:19 +0000 Received: by yic13 with SMTP id 13so3827345yic.36 for ; Mon, 15 Aug 2011 22:25:15 -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=WF+ZrVIfKf7sYZ4dyGsVK3F/EshD25PuqZm3ZX25fFM=; b=OobshhUcldKtq59Y5++G5Jgwazp+61Rcwh7yNWi8L7LxSt4EK7ab12POYFA9QueZoC eeQmmJ2xtdAgHojH07ucFya40X+K48BuqkiVhh9piB/pGh3ZoSWRVVl6a6ANNNWPF9sU gPJ86B2DyCI2rjXzl0uvvDT63Lmx5vSrT4q4s= Received: by 10.236.136.130 with SMTP id w2mr14375747yhi.192.1313472315316; Mon, 15 Aug 2011 22:25:15 -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 w1sm5876608yhi.37.2011.08.15.22.25.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Aug 2011 22:25:14 -0700 (PDT) Subject: [PATCH RESEND] ARM: tegra: Add missing include of linux/errno.h and linux/types.h From: Axel Lin To: linux-kernel@vger.kernel.org Date: Tue, 16 Aug 2011 13:25:05 +0800 Message-ID: <1313472305.15815.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_012518_566409_0AFC0D99 X-CRM114-Status: GOOD ( 14.10 ) 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.218.49 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, linux-arm-kernel@lists.infradead.org, Colin Cross , Olof Johansson , "Baruch Siach baruch"@tkos.co.il 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:26:07 +0000 (UTC) Include linux/errno.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". This RESEND fixes the typo in subject line and commit log pointed out by Baruch. 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