From: Will Deacon Date: Fri, 11 Oct 2013 13:52:09 +0000 (+0100) Subject: arm64: big-endian: fix byteorder include X-Git-Tag: firefly_0821_release~3680^2~123^2^2~3^3~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a07e8ed3b05f8424439c028853c568f79fbf1512;p=firefly-linux-kernel-4.4.55.git arm64: big-endian: fix byteorder include For big-endian processors, we must include linux/byteorder/big_endian.h to get the relevant definitions for swabbing between CPU order and a defined endianness. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas (cherry picked from commit c194520ada7c8f2eddec5ebf24982483b49736a0) Signed-off-by: Victor Kamensky --- diff --git a/arch/arm64/include/uapi/asm/byteorder.h b/arch/arm64/include/uapi/asm/byteorder.h index 2b92046aafc5..dc19e9537f0d 100644 --- a/arch/arm64/include/uapi/asm/byteorder.h +++ b/arch/arm64/include/uapi/asm/byteorder.h @@ -16,6 +16,10 @@ #ifndef __ASM_BYTEORDER_H #define __ASM_BYTEORDER_H +#ifdef __AARCH64EB__ +#include +#else #include +#endif #endif /* __ASM_BYTEORDER_H */