]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Export find_next_bit
authorAndrew Morton <akpm@osdl.org>
Mon, 15 Mar 2004 23:27:28 +0000 (15:27 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 15 Mar 2004 23:27:28 +0000 (15:27 -0800)
From: Anton Blanchard <anton@samba.org>

- export find_next_bit and move the other exports here
- fix a few minor style issues

arch/ppc64/kernel/bitops.c
arch/ppc64/kernel/ppc_ksyms.c

index 093fe7eff041df875e3dcf151db2b73c3e194c64..7520d026aee4f58542601e2df0e22a4170297106 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <asm/bitops.h>
 #include <asm/byteorder.h>
 
@@ -44,8 +45,10 @@ found_first:
 found_middle:
        return result + ffz(tmp);
 }
+EXPORT_SYMBOL(find_next_zero_bit);
 
-unsigned long find_next_bit(unsigned long *addr, unsigned long size, unsigned long offset)
+unsigned long find_next_bit(unsigned long *addr, unsigned long size,
+                           unsigned long offset)
 {
        unsigned long *p = addr + (offset >> 6);
        unsigned long result = offset & ~63UL;
@@ -82,8 +85,9 @@ found_first:
 found_middle:
        return result + __ffs(tmp);
 }
+EXPORT_SYMBOL(find_next_bit);
 
-static __inline__ unsigned int ext2_ilog2(unsigned int x) 
+static inline unsigned int ext2_ilog2(unsigned int x)
 {
        int lz;
 
@@ -91,16 +95,17 @@ static __inline__ unsigned int ext2_ilog2(unsigned int x)
        return 31 - lz;
 }
 
-static __inline__ unsigned int ext2_ffz(unsigned int x)
+static inline unsigned int ext2_ffz(unsigned int x)
 {
-       u32  tempRC;
+       u32 rc;
        if ((x = ~x) == 0)
                return 32;
-       tempRC = ext2_ilog2(x & -x);
-       return tempRC;
+       rc = ext2_ilog2(x & -x);
+       return rc;
 }
 
-unsigned long find_next_zero_le_bit(unsigned long *addr, unsigned long size, unsigned long offset)
+unsigned long find_next_zero_le_bit(unsigned long *addr, unsigned long size,
+                                   unsigned long offset)
 {
         unsigned int *p = ((unsigned int *) addr) + (offset >> 5);
         unsigned int result = offset & ~31;
@@ -136,3 +141,4 @@ found_first:
 found_middle:
         return result + ext2_ffz(tmp);
 }
+EXPORT_SYMBOL(find_next_zero_le_bit);
index c43a75d46546f393c8e72b3aff5f0075c56bdbc6..c294d824ed159eecd136585948a3265749ea5410 100644 (file)
@@ -55,9 +55,6 @@ EXPORT_SYMBOL(sys_ioctl);
 EXPORT_SYMBOL(isa_io_base);
 EXPORT_SYMBOL(pci_io_base);
 
-EXPORT_SYMBOL(find_next_zero_bit);
-EXPORT_SYMBOL(find_next_zero_le_bit);
-
 EXPORT_SYMBOL(strcpy);
 EXPORT_SYMBOL(strncpy);
 EXPORT_SYMBOL(strcat);