tools-sync-find_next_bit-implementation.patch removed from -mm tree
The patch titled
Subject: tools: sync find_next_bit implementation
has been removed from the -mm tree. Its filename was
tools-sync-find_next_bit-implementation.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Yury Norov <[email protected]>
Subject: tools: sync find_next_bit implementation
Sync the implementation with recent kernel changes.
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/asm-generic/bitops/find.h | 27 ++++++++--- tools/lib/find_bit.c | 52 ++++++++-------------- 2 files changed, 42 insertions(+), 37 deletions(-)
tools/include/asm-generic/bitops/find.h renamed from tools/include/asm-generic/bitops/find.h~tools-sync-find_next_bit-implementation +21 -6
@@ -2,6 +2,10 @@#ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_#define _TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_ +extern unsigned long _find_next_bit (const unsigned long *addr1, +const unsigned long *addr2,unsigned long nbits, +unsigned long start,unsigned long invert,unsigned long le); +#ifndef find_next_bit/** * find_next_bit - find the next set bit in a memory region
@@ -12,8 +16,12 @@* Returns the bit number for the next set bit * If no bits are set, returns @size. */ -extern unsigned long find_next_bit (const unsigned long *addr,unsigned long - size,unsigned long offset); +static inline +unsigned long find_next_bit (const unsigned long *addr,unsigned long size, +unsigned long offset) +{ +return _find_next_bit (addr,NULL , size, offset,0UL ,0 ); +}#endif #ifndef find_next_and_bit
@@ -27,13 +35,16 @@ extern unsigned long find_next_bit(const* Returns the bit number for the next set bit * If no bits are set, returns @size. */ -extern unsigned long find_next_and_bit (const unsigned long *addr1, +static inline +unsigned long find_next_and_bit (const unsigned long *addr1,const unsigned long *addr2,unsigned long size, -unsigned long offset); +unsigned long offset) +{ +return _find_next_bit (addr1, addr2, size, offset,0UL ,0 ); +}#endif #ifndef find_next_zero_bit -/** * find_next_zero_bit - find the next cleared bit in a memory region * @addr: The address to base the search on
@@ -43,8 +54,12 @@ extern unsigned long find_next_and_bit(c* Returns the bit number of the next zero bit * If no bits are zero, returns @size. */ +static inline unsigned long find_next_zero_bit (const unsigned long *addr,unsigned long size, -unsigned long offset); +unsigned long offset) +{ +return _find_next_bit (addr,NULL , size, offset, ~0UL ,0 ); +}#endif #ifndef find_first_bit
tools/lib/find_bit.c renamed from tools/lib/find_bit.c~tools-sync-find_next_bit-implementation +21 -31
77 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are