tools-bitmap-sync-function-declarations-with-the-kernel.patch removed from -mm tree
The patch titled
Subject: tools: bitmap: sync function declarations with the kernel
has been removed from the -mm tree. Its filename was
tools-bitmap-sync-function-declarations-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: bitmap: sync function declarations with the kernel
Some functions in tools/include/linux/bitmap.h declare nbits as int. In the kernel nbits is declared as unsigned int.
Signed-off-by Yury Norov <[email protected]>
Acked-by Rasmus Villemoes <[email protected]>
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]>
Signed-off-by Andrew Morton <[email protected]>
---
tools/include/linux/bitmap.h | 8 ++++---- tools/lib/bitmap.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
tools/include/linux/bitmap.h renamed from tools/include/linux/bitmap.h~tools-bitmap-sync-function-declarations-with-the-kernel +4 -4
@@ -30,7 +30,7 @@ void bitmap_clear(unsigned long *map, un#define small_const_nbits (nbits) \ (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG) -static inline void bitmap_zero (unsigned long *dst,int nbits) +static inline void bitmap_zero (unsigned long *dst,unsigned int nbits) {if (small_const_nbits (nbits)) *dst =0UL ;
@@ -66,7 +66,7 @@ static inline int bitmap_full(const unsireturn find_first_zero_bit (src, nbits) == nbits; } -static inline int bitmap_weight (const unsigned long *src,int nbits) +static inline int bitmap_weight (const unsigned long *src,unsigned int nbits) {if (small_const_nbits (nbits))return hweight_long (*src &BITMAP_LAST_WORD_MASK (nbits));
@@ -74,7 +74,7 @@ static inline int bitmap_weight(const un }static inline void bitmap_or (unsigned long *dst,const unsigned long *src1, -const unsigned long *src2,int nbits) +const unsigned long *src2,unsigned int nbits) {if (small_const_nbits (nbits)) *dst = *src1 | *src2;
@@ -141,7 +141,7 @@ static inline void bitmap_free(unsigned* @buf: buffer to store output * @size: size of @buf */ -size_t bitmap_scnprintf (unsigned long *bitmap,int nbits, +size_t bitmap_scnprintf (unsigned long *bitmap,unsigned int nbits,char *buf,size_t size);/**
tools/lib/bitmap.c renamed from tools/lib/bitmap.c~tools-bitmap-sync-function-declarations-with-the-kernel +2 -2
@@ -28,11 +28,11 @@ void __bitmap_or(unsigned long *dst, con dst[k] = bitmap1[k] | bitmap2[k]; } -size_t bitmap_scnprintf (unsigned long *bitmap,int nbits, +size_t bitmap_scnprintf (unsigned long *bitmap,unsigned int nbits,char *buf,size_t size) {/* current bit is 'cur', most recently seen range is [rbot, rtop] */ -int cur, rbot, rtop; +unsigned int cur, rbot, rtop;bool first = true;size_t ret =0 ;
_
Patches currently in -mm which might be from [email protected] are