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~176^2~5049^2~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c194520ada7c8f2eddec5ebf24982483b49736a0;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 --- 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 */