[RFC 1/9] WIP: make ehci-hcd.c happy on big-endian MIPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



import __constant_cpu_to_le16() from linux.git/include/uapi/linux/byteorder/big_endian.h

Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux