diff options
author | Ian Munsie <imunsie@au1.ibm.com> | 2013-09-23 06:04:44 +0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 09:48:33 +0400 |
commit | c57a5ce0df04be61bafedc0f3043d568103c7ab5 (patch) | |
tree | c84ea7c8ff752a249c778a991bda8291569550ab /arch/powerpc/include/uapi | |
parent | e871c6bbf66c1b44af0fb925427e957301e2e1ff (diff) | |
download | linux-c57a5ce0df04be61bafedc0f3043d568103c7ab5.tar.xz |
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>
Diffstat (limited to 'arch/powerpc/include/uapi')
-rw-r--r-- | arch/powerpc/include/uapi/asm/byteorder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/uapi/asm/byteorder.h b/arch/powerpc/include/uapi/asm/byteorder.h index aa6cc4fac965..ca931d074000 100644 --- a/arch/powerpc/include/uapi/asm/byteorder.h +++ b/arch/powerpc/include/uapi/asm/byteorder.h @@ -7,6 +7,10 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ +#ifdef __LITTLE_ENDIAN__ +#include <linux/byteorder/little_endian.h> +#else #include <linux/byteorder/big_endian.h> +#endif #endif /* _ASM_POWERPC_BYTEORDER_H */ |