projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0974e6
)
arm64: big-endian: fix byteorder include
author
Will Deacon
<
[email protected]
>
Fri, 11 Oct 2013 13:52:09 +0000
(14:52 +0100)
committer
Catalin Marinas
<
[email protected]
>
Fri, 25 Oct 2013 14:59:32 +0000
(15:59 +0100)
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 <
[email protected]
>
Signed-off-by: Catalin Marinas <
[email protected]
>
arch/arm64/include/uapi/asm/byteorder.h
patch
|
blob
|
history
diff --git
a/arch/arm64/include/uapi/asm/byteorder.h
b/arch/arm64/include/uapi/asm/byteorder.h
index 2b92046aafc5297ab97a8e91cbbc25b462594bad..dc19e9537f0decad3662b5036aa592466373c5e1 100644
(file)
--- 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 <linux/byteorder/big_endian.h>
+#else
#include <linux/byteorder/little_endian.h>
+#endif
#endif /* __ASM_BYTEORDER_H */