Skip to contentSkip to conversation

linux-typesh-remove-unnecessary-__bitwise__.patch removed from -mm tree

merged Andrew Morton 1 participant 1 message Mar 25, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The patch titled
Subject: linux/types.h: remove unnecessary __bitwise__
has been removed from the -mm tree. Its filename was
linux-typesh-remove-unnecessary-__bitwise__.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Bjorn Helgaas <[email protected]>
Subject: linux/types.h: remove unnecessary __bitwise__

There are no users of "__bitwise__" except the definition of "__bitwise". Remove __bitwise__ and define __bitwise directly.

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

[[email protected]: change the tools/include/linux/types.h definition also]
Cc Michael S. Tsirkin <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Nathan Chancellor <[email protected]>
Cc Nick Desaulniers <[email protected]>

---

 include/uapi/linux/types.h  |    5 ++---
 tools/include/linux/types.h |    5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)
include/uapi/linux/types.h renamed from include/uapi/linux/types.h~linux-typesh-remove-unnecessary-__bitwise__ +2 -3
@@ -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;
tools/include/linux/types.h renamed from tools/include/linux/types.h~linux-typesh-remove-unnecessary-__bitwise__ +2 -3
@@ -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

_

Patches currently in -mm which might be from [email protected] are