u-boot-brain/include/linux
Kim Phillips eef1cf2d5c include/linux/byteorder: import latest endian definitions from linux
u-boot's byteorder headers did not contain endianness attributions
for use with sparse, causing a lot of false positives.  Import the
kernel's latest definitions, and enable them by including compiler.h
and types.h.  They come with 'const' added for some swab functions, so
fix those up, too:

include/linux/byteorder/big_endian.h:46:2: warning: passing argument 1 of '__swab64p' discards 'const' qualifier from pointer target type [enabled by default]

Also, note: u-boot's historic __BYTE_ORDER definition has been
preserved (for the time being at least).

We also remove ad-hoc barrier() definitions, since we're including
compiler.h in files that hadn't in the past:

macb.c:54:0: warning: "barrier" redefined [enabled by default]

In addition, including compiler.h in byteorder changes the 'noinline'
definition to expand to __attribute__((noinline)).  This fixes
arch/powerpc/lib/bootm.c:

bootm.c:329:16: error: attribute '__attribute__': unknown attribute
bootm.c:329:16: error: expected ')' before '__attribute__'
bootm.c:329:25: error: expected identifier or '(' before ')' token

powerpc sparse builds yield:

include/common.h:356:22: error: marked inline, but without a definition

the unknown-reason inlining without a definition is considered obsolete
given it was part of the 2002 initial commit, and no arm version was
'fixed.'

also fixed:
ydirectenv.h:60:0: warning: "inline" redefined [enabled by default]

and:

Configuring for devconcenter - Board: intip, Options: DEVCONCENTER
make[1]: *** [4xx_ibm_ddr2_autocalib.o] Error 1
make: *** [arch/powerpc/cpu/ppc4xx/libppc4xx.o] Error 2
powerpc-fsl-linux-size: './u-boot': No such file
4xx_ibm_ddr2_autocalib.c: In function 'DQS_autocalibration':
include/asm/ppc4xx-sdram.h:1407:13: sorry, unimplemented: inlining failed in call to 'ppc4xx_ibm_ddr2_register_dump': function body not available
4xx_ibm_ddr2_autocalib.c:1243:32: sorry, unimplemented: called from here

and:

In file included from crc32.c:50:0:
crc32table.h:4:1: warning: implicit declaration of function '___constant_swab32' [-Wimplicit-function-declaration]
crc32table.h:4:1: error: initializer element is not constant
crc32table.h:4:1: error: (near initialization for 'crc32table_le[0]')

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
[trini: Remove '#endif' in include/common.h around setenv portion]
Signed-off-by: Tom Rini <trini@ti.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 Merge branch 'master' of git://git.denx.de/u-boot-arm 2012-09-21 14:53:13 -07:00
unaligned ARM: Use Linux version for unaligned access code 2009-11-07 15:56:30 -06:00
usb usb:gadget:composite: Support for composite at gadget.h 2012-05-20 08:32:33 +02:00
apm_bios.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
bch.h nand: Merge BCH code from Linux nand driver 2012-01-26 16:09:02 -06:00
bitops.h Correct ffs/fls regression for PowerPC etc 2009-09-17 22:45:31 +02:00
compat.h lin_gadget: use common linux/compat.h 2012-04-30 16:54:51 +02:00
compiler-gcc3.h Add missing header for gcc3 2011-10-01 21:56:20 +02:00
compiler-gcc4.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler-gcc.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
config.h Initial revision 2000-08-21 15:05:47 +00:00
crc7.h lib: add crc7 from Linux 2011-01-18 23:38:08 +01:00
crc32.h Coding style cleanup, update CHANGELOG. 2008-12-16 01:02:17 +01:00
ctype.h Add isblank 2011-10-17 22:25:34 +02:00
edd.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
err.h linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
ethtool.h Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
fb.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
input.h input: Add linux/input.h for key code support 2012-05-15 08:31:39 +02:00
ioctl.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
ioport.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
kbuild.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
linkage.h arm: adapt asm/linkage.h from Linux 2012-05-15 08:31:26 +02:00
list.h Coding style cleanup, update CHANGELOG 2008-09-13 02:23:05 +02:00
lzo.h add lzop decompression support 2009-12-05 01:30:23 +01:00
math64.h UBIFS: Implement read-only UBIFS support in U-Boot 2009-03-20 22:39:15 +01:00
mc146818rtc.h Replace BCD2BIN and BIN2BCD macros with inline functions 2009-08-25 12:57:55 +02:00
mdio.h Minor coding style cleanup. 2011-09-11 21:24:09 +02:00
mii.h Coding style (white space) cleanup. 2010-12-17 10:14:09 +01:00
netdevice.h USB-CDC: Port struct net_device_stats 2011-02-19 20:32:37 +01:00
poison.h update linux/list 2008-08-31 04:24:51 +02:00
posix_types.h Initial revision 2001-04-28 17:59:11 +00:00
rbtree.h Add Red Black Tree support 2008-10-18 21:54:01 +02:00
screen_info.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
stat.h nios2: add struct stat support in linux/stat.h 2010-04-02 12:28:40 -04:00
stddef.h Initial revision 2002-03-31 12:34:56 +00: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 Initial revision 2002-03-08 21:31:05 +00:00
types.h UBI: Add basic UBI support to U-Boot (Part 6/8) 2008-11-19 20:34:39 +01:00