[U-Boot] [PATCH 01/32] include/linux/byteorder: import latest endian definitions from linux

Tom Rini
2012-10-25T17:37:25Z

On Tue, Oct 16, 2012 at 07:28:17PM -0500, Kim Phillips wrote:

> 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).
>
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>

This causes:
$ uboot-build.sh afeb9260
Testing afeb9260 on -00382-g8391387
Thu Oct 25 10:36:06 MST 2012
Configuring for afeb9260 board...
text data bss dec hex filename
198034 5648 72652 276334 4376e afeb9260/u-boot
macb.c:54:0: warning: "barrier" redefined [enabled by default]
.../include/linux/compiler-gcc.h:12:0: note: this is the location of the previous definition

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121025/41e038f7/attachment.pgp>