u-boot-brain/include/linux
Kim Phillips aa9e891c63 include/linux/stddef.h: avoid 'warning: preprocessor token offsetof redefined'
hack to avoid:

/opt/gcc-4.6.3-nolibc/powerpc-linux/bin/../lib/gcc/powerpc-linux/4.6.3/include/stddef.h:413:9: warning: preprocessor token offsetof redefined
u-boot/include/linux/stddef.h:20:9: this was the original definition

tried protecting with __KERNEL__, and #including compiler.h first.

Even tried include dir reordering to no avail:

 +++ b/config.mk
 @@ -194,7 +194,11 @@ OBJCFLAGS += --gap-fill=0xff
 gccincdir := $(shell $(CC) -print-file-name=include)

 CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS)                \
 -       -D__KERNEL__
 +       -D__KERNEL__  \
 +       -I $(gccincdir) \
 +       -nostdinc
 +
 +#      -isystem $(gccincdir) \

 # Enable garbage collection of un-used sections for SPL
 ifeq ($(CONFIG_SPL_BUILD),y)
 @@ -227,8 +231,7 @@ CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include
 endif

 CPPFLAGS += -I$(TOPDIR)/include
 -CPPFLAGS += -fno-builtin -ffreestanding -nostdinc      \
 -       -isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS)
 +CPPFLAGS += -fno-builtin -ffreestanding -pipe $(PLATFORM_CPPFLAGS)

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
2012-11-04 11:00:34 -07:00
..
byteorder include/linux/byteorder: import latest endian definitions from linux 2012-11-04 11:00:34 -07:00
mtd include/linux/compat.h: fix warning: preprocessor token {__iomem, __user} redefined 2012-11-04 11:00:34 -07:00
unaligned include/linux/unaligned/generic.h: fix warning: preprocessor token __force redefined 2012-11-04 11:00:34 -07:00
usb usb:gadget:composite: Support for composite at gadget.h 2012-05-20 08:32:33 +02:00
apm_bios.h
bch.h
bitops.h
compat.h include/linux/compat.h: fix warning: preprocessor token {__iomem, __user} redefined 2012-11-04 11:00:34 -07:00
compiler-gcc3.h
compiler-gcc4.h
compiler-gcc.h
compiler.h
config.h
crc7.h
crc32.h
ctype.h
edd.h
err.h linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
ethtool.h
fb.h
input.h input: Add linux/input.h for key code support 2012-05-15 08:31:39 +02:00
ioctl.h
ioport.h
kbuild.h
linkage.h arm: adapt asm/linkage.h from Linux 2012-05-15 08:31:26 +02:00
list.h
lzo.h
math64.h
mc146818rtc.h
mdio.h
mii.h
netdevice.h
poison.h
posix_types.h
rbtree.h
screen_info.h
stat.h
stddef.h include/linux/stddef.h: avoid 'warning: preprocessor token offsetof redefined' 2012-11-04 11:00:34 -07:00
string.h nand: Sanitize ONFI strings. 2012-01-26 16:09:02 -06:00
stringify.h COMMON: Add __stringify() function 2012-10-15 11:53:47 -07:00
time.h
types.h