Skip to contentSkip to conversation

inotify 0.22 2.4.x backport - find_next_bit

RFC PATCH New Mihai Rusu 1 participant 1 message May 10, 2005

Subsystems (2)
lore
Share & tools
lore

Mihai Rusu

author
#0 lore raw

RFC PATCH 1/4 inotify 0.22 2.4.x backport - find_next_bit

Hi

This is the find_next_bit implementation from 2.6.11 vanilla. Needed by "idr.c".

Signature · 7 lines
Mihai Rusu
Linux System Development

Schlund + Partner AG   Tel         : +40-21-231-2544
Str Mircea Eliade 18   EMail       : [email protected]
Sect 1, Bucuresti
71295, Romania
 include/linux/bitops.h |    2 +
 lib/Makefile           |    2 -
 lib/find_next_bit.c    |   55 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+), 1 deletion(-)
include/linux/bitops.h +2 -0
diff -uNr linux-2.4.30.orig/include/linux/bitops.h linux-2.4.30/include/linux/bitops.h
@@ -66,6 +66,8 @@
         return (res & 0x0F) + ((res >> 4) & 0x0F);
 }
 
+int find_next_bit(const unsigned long *addr, int size, int offset);
+
 #include <asm/bitops.h>
 
 
lib/Makefile +1 -1
diff -uNr linux-2.4.30.orig/lib/Makefile linux-2.4.30/lib/Makefile
@@ -12,7 +12,7 @@
 	       rbtree.o crc32.o firmware_class.o
 
 obj-y := errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o \
-	 bust_spinlocks.o rbtree.o dump_stack.o
+	 bust_spinlocks.o rbtree.o dump_stack.o find_next_bit.o
 
 obj-$(CONFIG_FW_LOADER) += firmware_class.o
 obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
lib/find_next_bit.c +55 -0

55 lines not on this page · raw message