aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-12-07 21:19:29 -0500
committerMichael S. Tsirkin <mst@redhat.com>2016-12-15 17:13:39 -0500
commit05de97003c773e7881e4df3f767b81a6508107f2 (patch)
treede65d995013e8a0851749f0841e370fa92c22c63
parentcecdbdc3771e5b8583a9b43b03335b4223a9a6c9 (diff)
linux/types.h: enable endian checks for all sparse builds
By now, linux is mostly endian-clean. Enabling endian-ness checks for everyone produces about 200 new sparse warnings for me - less than 10% over the 2000 sparse warnings already there. Not a big deal, OTOH enabling this helps people notice they are introducing new bugs. So let's just drop __CHECK_ENDIAN__. Follow-up patches can drop distinction between __bitwise and __bitwise__. Cc: Linus Torvalds <torvalds@linux-foundation.org> Suggested-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--include/uapi/linux/types.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/uapi/linux/types.h b/include/uapi/linux/types.h
index acf0979b790a..41e5914f0a8e 100644
--- a/include/uapi/linux/types.h
+++ b/include/uapi/linux/types.h
@@ -23,11 +23,7 @@
23#else 23#else
24#define __bitwise__ 24#define __bitwise__
25#endif 25#endif
26#ifdef __CHECK_ENDIAN__
27#define __bitwise __bitwise__ 26#define __bitwise __bitwise__
28#else
29#define __bitwise
30#endif
31 27
32typedef __u16 __bitwise __le16; 28typedef __u16 __bitwise __le16;
33typedef __u16 __bitwise __be16; 29typedef __u16 __bitwise __be16;