Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Will Deacon and committed by
Catalin Marinas
c194520a a0974e6e

+4
+4
arch/arm64/include/uapi/asm/byteorder.h
··· 16 16 #ifndef __ASM_BYTEORDER_H 17 17 #define __ASM_BYTEORDER_H 18 18 19 + #ifdef __AARCH64EB__ 20 + #include <linux/byteorder/big_endian.h> 21 + #else 19 22 #include <linux/byteorder/little_endian.h> 23 + #endif 20 24 21 25 #endif /* __ASM_BYTEORDER_H */