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
..
2011-10-01 21:56:20 +02:00
2000-08-21 15:05:47 +00:00
2011-01-18 23:38:08 +01:00
2011-10-17 22:25:34 +02:00
2010-05-06 00:17:01 +02:00
2011-04-20 15:09:19 -05:00
2010-10-27 22:48:30 +02:00
2010-05-06 00:17:01 +02:00
2010-05-06 00:17:01 +02:00
2010-10-27 22:48:30 +02:00
2012-05-15 08:31:26 +02:00
2008-09-13 02:23:05 +02:00
2009-12-05 01:30:23 +01:00
2011-09-11 21:24:09 +02:00
2010-12-17 10:14:09 +01:00
2008-08-31 04:24:51 +02:00
2001-04-28 17:59:11 +00:00
2008-10-18 21:54:01 +02:00
2012-01-26 16:09:02 -06:00
2012-10-15 11:53:47 -07:00
2002-03-08 21:31:05 +00:00