Commit c57a5ce0df04be61bafedc0f3043d568103c7ab5

Authored by Ian Munsie
Committed by Benjamin Herrenschmidt
1 parent e871c6bbf6

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

arch/powerpc/include/uapi/asm/byteorder.h
... ... @@ -7,7 +7,11 @@
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 */