Skip to contentSkip to conversation

tools-sync-small_const_nbits-macro-with-the-kernel.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 8, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: tools: sync small_const_nbits() macro with the kernel
has been removed from the -mm tree. Its filename was
tools-sync-small_const_nbits-macro-with-the-kernel.patch

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

------------------------------------------------------
From: Yury Norov <[email protected]>
Subject: tools: sync small_const_nbits() macro with the kernel

Sync implementation with the kernel and move the macro from tools/include/linux/bitmap.h to tools/include/asm-generic/bitsperlong.h

Cc Alexey Klimov <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc David Sterba <[email protected]>
Cc Dennis Zhou <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Jianpeng Ma <[email protected]>
Cc Joe Perches <[email protected]>
Cc John Paul Adrian Glaubitz <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Rich Felker <[email protected]>
Cc Stefano Brivio <[email protected]>
Cc Wei Yang <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshinori Sato <[email protected]>

---

 tools/include/asm-generic/bitsperlong.h |    3 +++
 tools/include/linux/bitmap.h            |    3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
tools/include/asm-generic/bitsperlong.h renamed from tools/include/asm-generic/bitsperlong.h~tools-sync-small_const_nbits-macro-with-the-kernel +3 -0
@@ -18,4 +18,7 @@
 #define BITS_PER_LONG_LONG 64
 #endif
 
+#define small_const_nbits(nbits) \
+	(__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
+
 #endif /* __ASM_GENERIC_BITS_PER_LONG */
tools/include/linux/bitmap.h renamed from tools/include/linux/bitmap.h~tools-sync-small_const_nbits-macro-with-the-kernel +0 -3
@@ -22,9 +22,6 @@ void bitmap_clear(unsigned long *map, un
 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
 
-#define small_const_nbits(nbits) \
-	(__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
-
 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits)
 {
 	if (small_const_nbits(nbits))

_

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