summaryrefslogtreecommitdiff
path: root/include/uapi/linux/byteorder/big_endian.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2019-06-06 16:11:00 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2019-06-06 16:11:00 +1000
commit16b83fe2f6b33e229ad7231987c18d494f91423f (patch)
treec453f28c921db84906794de086758e50806f611f /include/uapi/linux/byteorder/big_endian.h
parent804f89c3cb24aeee02aec4acc9201ba159aa52ed (diff)
parent88b28c8504ba11bf59c6a460a7f9ca3498530ceb (diff)
downloadlinux-next-16b83fe2f6b33e229ad7231987c18d494f91423f.tar.gz
Merge branch 'akpm-current/current'
Diffstat (limited to 'include/uapi/linux/byteorder/big_endian.h')
-rw-r--r--include/uapi/linux/byteorder/big_endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/byteorder/big_endian.h b/include/uapi/linux/byteorder/big_endian.h
index 2199adc6a6c2..3e58b717fb5a 100644
--- a/include/uapi/linux/byteorder/big_endian.h
+++ b/include/uapi/linux/byteorder/big_endian.h
@@ -2,6 +2,10 @@
#ifndef _UAPI_LINUX_BYTEORDER_BIG_ENDIAN_H
#define _UAPI_LINUX_BYTEORDER_BIG_ENDIAN_H
+#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__
+#error "Unsupported endianness, check your toolchain"
+#endif
+
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 4321
#endif