Skip to content

Commit

Permalink
linux/types.h: remove unnecessary __bitwise__
Browse files Browse the repository at this point in the history
There are no users of "__bitwise__" except the definition of
"__bitwise".  Remove __bitwise__ and define __bitwise directly.

This is a follow-up to 05de970 ("linux/types.h: enable endian
checks for all sparse builds").

[[email protected]: change the tools/include/linux/types.h definition also]

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Bjorn Helgaas <[email protected]>
Cc: Michael S. Tsirkin <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
bjorn-helgaas authored and torvalds committed Mar 24, 2022
1 parent e9f5d10 commit c724c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions include/uapi/linux/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
*/

#ifdef __CHECKER__
#define __bitwise__ __attribute__((bitwise))
#define __bitwise __attribute__((bitwise))
#else
#define __bitwise__
#define __bitwise
#endif
#define __bitwise __bitwise__

typedef __u16 __bitwise __le16;
typedef __u16 __bitwise __be16;
Expand Down
5 changes: 2 additions & 3 deletions tools/include/linux/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ typedef __u8 u8;
typedef __s8 s8;

#ifdef __CHECKER__
#define __bitwise__ __attribute__((bitwise))
#define __bitwise __attribute__((bitwise))
#else
#define __bitwise__
#define __bitwise
#endif
#define __bitwise __bitwise__

#define __force
#define __user
Expand Down

0 comments on commit c724c86

Please sign in to comment.