Skip to contentSkip to conversation

bit-radix.c: fix declarations

PATCH In review Américo Wang 2 participants 3 messages Jan 19, 2009 – Jan 22, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bit-radix.c: fix declarations

bit-radix.c should #include "bit-radix.h", and add a missing declaration for find_next_bit().

---

bit-radix.c +1 -1
index 57f6f3c..01bf4af 100644
@@ -17,7 +17,7 @@
  */
 
 #include "kerncompat.h"
-#include "radix-tree.h"
+#include "bit-radix.h"
 
 #define BIT_ARRAY_BYTES 256
 #define BIT_RADIX_BITS_PER_ARRAY ((BIT_ARRAY_BYTES - sizeof(unsigned long)) * 8)
bit-radix.h +2 -0
index af14e80..ff82c9c 100644
@@ -23,6 +23,8 @@
 int set_radix_bit(struct radix_tree_root *radix, unsigned long bit);
 int test_radix_bit(struct radix_tree_root *radix, unsigned long bit);
 int clear_radix_bit(struct radix_tree_root *radix, unsigned long bit);
+unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
+                unsigned long offset);
 int find_first_radix_bit(struct radix_tree_root *radix, unsigned long *retbits,
 			 unsigned long start, int nr);
 
#1 lore raw
Quoted 1 line · On Mon, 2009-01-19 at 22:19 +0800, Am=C3=A9rico Wang wrote:

bit-radix.c should #include "bit-radix.h", and add a missing declarat=

ion

Quoted 4 lines

for find_next_bit().
=20

=20

I fixed this a little differently, the bit-radix code wasn't being used anymore. It's gone now ;)

-chris

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 2 lines · Chris Mason
Quoted 1 line · On Mon, 2009-01-19 at 22:19 +0800, Am=C3=A9rico Wang wrote:

bit-radix.c should #include "bit-radix.h", and add a missing declara=

tion

Quoted 6 lines
Quoted 4 lines

for find_next_bit().
=20

=20

I fixed this a little differently, the bit-radix code wasn't being use=

d

Quoted 2 lines

anymore. It's gone now ;)

Thanks for your explanation!

--=20
"Against stupidity, the gods themselves, contend in vain."

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html