From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 24 Oct 2012 14:31:19 -0700 Subject: [U-Boot] [PATCH 02/32] include/linux/compat.h: fix warning: preprocessor token __iomem redefined In-Reply-To: <1350433728-24120-3-git-send-email-kim.phillips@freescale.com> References: <1350433728-24120-1-git-send-email-kim.phillips@freescale.com> <1350433728-24120-3-git-send-email-kim.phillips@freescale.com> Message-ID: <20121024213119.GF8148@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Oct 16, 2012 at 07:28:18PM -0500, Kim Phillips wrote: > include/linux/compat.h:4:9: warning: preprocessor token __user redefined > include/linux/compiler.h:7:10: this was the original definition > include/linux/compat.h:5:9: warning: preprocessor token __iomem redefined > include/linux/compiler.h:12:10: this was the original definition > > fixup __iomem, __user definitions in compat.h code appears to be placed > there as a cover up from a code import from linux when u-boot didn't yet > have a compiler.h, introduced by commit > 932394ac43e2e778e664eeb6e456fecd0fae6e59 "Rewrite of NAND code based on > what is in 2.6.12 Linux kernel". > > Signed-off-by: Kim Phillips include/linux/mtd/mtd-api.h now blows up on a number of omap3 boards with: In file included from .../u-boot/u-boot/include/linux/mtd/mtd.h:12:0, from mtdcore.c:10: .../u-boot/include/linux/mtd/mtd-abi.h:22:23: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token I can get past this locally by adding to the file in question. -- Tom