[RFC 1/9] WIP: make ehci-hcd.c happy on big-endian MIPS
Antony Pavlov
antonynpavlov at gmail.com
Thu Aug 27 15:24:02 PDT 2015
import __constant_cpu_to_le16() from linux.git/include/uapi/linux/byteorder/big_endian.h
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
include/linux/byteorder/big_endian.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/byteorder/big_endian.h b/include/linux/byteorder/big_endian.h
index 09fb188..11cf23e 100644
--- a/include/linux/byteorder/big_endian.h
+++ b/include/linux/byteorder/big_endian.h
@@ -19,7 +19,7 @@
#define __constant_le64_to_cpu(x) ___swab64((x))
#define __constant_cpu_to_le32(x) ___swab32((x))
#define __constant_le32_to_cpu(x) ___swab32((x))
-#define __constant_cpu_to_le16(x) ___swab16((x))
+#define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x)))
#define __constant_le16_to_cpu(x) ___swab16((x))
#define __constant_cpu_to_be64(x) ((__u64)(x))
#define __constant_be64_to_cpu(x) ((__u64)(x))
--
2.5.0
More information about the barebox
mailing list