]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
linux/types.h: enable endian checks for all sparse builds
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 8 Dec 2016 02:19:29 +0000 (04:19 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 22:13:39 +0000 (00:13 +0200)
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>
include/uapi/linux/types.h

index acf0979b790afd5faa66d4bcca5242afb4678ec3..41e5914f0a8efd5255b733890b80b8e28b491b18 100644 (file)
 #else
 #define __bitwise__
 #endif
-#ifdef __CHECK_ENDIAN__
 #define __bitwise __bitwise__
-#else
-#define __bitwise
-#endif
 
 typedef __u16 __bitwise __le16;
 typedef __u16 __bitwise __be16;