Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Include the appropriate endianness header

This patch will have powerpc include the appropriate generic endianness
header depending on what the compiler reports.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Ian Munsie and committed by
Benjamin Herrenschmidt
c57a5ce0 e871c6bb

+4
+4
arch/powerpc/include/uapi/asm/byteorder.h
··· 7 7 * as published by the Free Software Foundation; either version 8 8 * 2 of the License, or (at your option) any later version. 9 9 */ 10 + #ifdef __LITTLE_ENDIAN__ 11 + #include <linux/byteorder/little_endian.h> 12 + #else 10 13 #include <linux/byteorder/big_endian.h> 14 + #endif 11 15 12 16 #endif /* _ASM_POWERPC_BYTEORDER_H */