diff options
author | Will Deacon <will.deacon@arm.com> | 2013-10-11 09:52:09 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-10-25 10:59:32 -0400 |
commit | c194520ada7c8f2eddec5ebf24982483b49736a0 (patch) | |
tree | f89e025bed9f6713398053a6618e6de65c3f7562 /arch/arm64 | |
parent | a0974e6e217aead196033d72f898e2acb575304d (diff) |
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 <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/uapi/asm/byteorder.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
16 | #ifndef __ASM_BYTEORDER_H | 16 | #ifndef __ASM_BYTEORDER_H |
17 | #define __ASM_BYTEORDER_H | 17 | #define __ASM_BYTEORDER_H |
18 | 18 | ||
19 | #ifdef __AARCH64EB__ | ||
20 | #include <linux/byteorder/big_endian.h> | ||
21 | #else | ||
19 | #include <linux/byteorder/little_endian.h> | 22 | #include <linux/byteorder/little_endian.h> |
23 | #endif | ||
20 | 24 | ||
21 | #endif /* __ASM_BYTEORDER_H */ | 25 | #endif /* __ASM_BYTEORDER_H */ |