Преглед на файлове

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>
Will Deacon преди 12 години
родител
ревизия
c194520ada
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      arch/arm64/include/uapi/asm/byteorder.h

+ 4 - 0
arch/arm64/include/uapi/asm/byteorder.h

@@ -16,6 +16,10 @@
 #ifndef __ASM_BYTEORDER_H
 #define __ASM_BYTEORDER_H
 
+#ifdef __AARCH64EB__
+#include <linux/byteorder/big_endian.h>
+#else
 #include <linux/byteorder/little_endian.h>
+#endif
 
 #endif	/* __ASM_BYTEORDER_H */