Skip to content

Commit

Permalink
powerpc: Include the appropriate endianness header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Munsie authored and Benjamin Herrenschmidt committed Oct 11, 2013
1 parent e871c6b commit c57a5ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/include/uapi/asm/byteorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit c57a5ce

Please sign in to comment.