Skip to contentSkip to conversation

ext4 still broken on arm (at least)

DISCUSSION Andrew Morton 4 participants 5 messages Nov 28, 2007

Subsystems (3)
lore
Share & tools
lore

Andrew Morton

author maintainer
#0 lore raw

fs/ext4/mballoc.c: In function `ext4_mb_generate_buddy':
fs/ext4/mballoc.c:836: error: implicit declaration of function `ext2_find_next_bit'

author maintainer
#2 lore raw
In reply to Aneesh Kumar K.V
Quoted 7 lines · On Wed, 28 Nov 2007 11:00:20 +0530 "Aneesh Kumar K.V"…
Quoted 2 lines · Andrew Morton

fs/ext4/mballoc.c: In function `ext4_mb_generate_buddy':
fs/ext4/mballoc.c:836: error: implicit declaration of function `ext2_find_next_bit'

I actually sent in a patch which changes asking for review to linux-arch. I haven't got the response yet.

Don't expect one...

Quoted 17 lines

Attaching the patch
below

Introduce ext4_find_next_bit

From: Aneesh Kumar K.V <[email protected]>

This gets used by the ext4 multi block allocator patches.

Also add generic_find_next_le_bit

---

Quoted 9 lines
 include/asm-arm/bitops.h                     |    2 +
 include/asm-generic/bitops/ext2-non-atomic.h |    2 +
 include/asm-generic/bitops/le.h              |    4 ++
 include/asm-m68k/bitops.h                    |    2 +
 include/asm-m68knommu/bitops.h               |    2 +
 include/asm-powerpc/bitops.h                 |    4 ++
 include/asm-s390/bitops.h                    |    2 +
 include/linux/ext4_fs.h                      |    1 +
 lib/find_next_bit.c                          |   43 ++++++++++++++++++++++++++

May as well merge it I guess. I'll do that. Possibly it should be merged into the ext4 tree instead, so that people can build the ext4 devel tree on other architectures but obviously there's no call for that.

#1 lore raw
In reply to Andrew Morton
Quoted 2 lines · Andrew Morton

fs/ext4/mballoc.c: In function `ext4_mb_generate_buddy':
fs/ext4/mballoc.c:836: error: implicit declaration of function `ext2_find_next_bit'

I actually sent in a patch which changes asking for review to linux-arch. I haven't got the response yet. Attaching the patch below

Introduce ext4_find_next_bit

From: Aneesh Kumar K.V <[email protected]>

This gets used by the ext4 multi block allocator patches.

Also add generic_find_next_le_bit

---

 include/asm-arm/bitops.h                     |    2 +
 include/asm-generic/bitops/ext2-non-atomic.h |    2 +
 include/asm-generic/bitops/le.h              |    4 ++
 include/asm-m68k/bitops.h                    |    2 +
 include/asm-m68knommu/bitops.h               |    2 +
 include/asm-powerpc/bitops.h                 |    4 ++
 include/asm-s390/bitops.h                    |    2 +
 include/linux/ext4_fs.h                      |    1 +
 lib/find_next_bit.c                          |   43 ++++++++++++++++++++++++++
 9 files changed, 62 insertions(+), 0 deletions(-)
include/asm-arm/bitops.h +2 -0
index 47a6b08..5c60bfc 100644
@@ -310,6 +310,8 @@ static inline int constant_fls(int x)
 		_find_first_zero_bit_le(p,sz)
 #define ext2_find_next_zero_bit(p,sz,off)	\
 		_find_next_zero_bit_le(p,sz,off)
+#define ext2_find_next_bit(p, sz, off) \
+		_find_next_bit_le(p, sz, off)
 
 /*
  * Minix is defined to use little-endian byte ordering.
include/asm-generic/bitops/ext2-non-atomic.h +2 -0
index 1697404..63cf822 100644
@@ -14,5 +14,7 @@
 	generic_find_first_zero_le_bit((unsigned long *)(addr), (size))
 #define ext2_find_next_zero_bit(addr, size, off) \
 	generic_find_next_zero_le_bit((unsigned long *)(addr), (size), (off))
+#define ext2_find_next_bit(addr, size, off) \
+	generic_find_next_le_bit((unsigned long *)(addr), (size), (off))
 
 #endif /* _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ */
include/asm-generic/bitops/le.h +4 -0
index b9c7e5d..80e3bf1 100644
@@ -20,6 +20,8 @@
 #define generic___test_and_clear_le_bit(nr, addr) __test_and_clear_bit(nr, addr)
 
 #define generic_find_next_zero_le_bit(addr, size, offset) find_next_zero_bit(addr, size, offset)
+#define generic_find_next_le_bit(addr, size, offset) \
+			find_next_bit(addr, size, offset)
 
 #elif defined(__BIG_ENDIAN)
 
@@ -42,6 +44,8 @@
 
 extern unsigned long generic_find_next_zero_le_bit(const unsigned long *addr,
 		unsigned long size, unsigned long offset);
+extern unsigned long generic_find_next_le_bit(const unsigned long *addr,
+		unsigned long size, unsigned long offset);
 
 #else
 #error "Please fix <asm/byteorder.h>"
include/asm-m68k/bitops.h +2 -0
index 2976b5d..83d1f28 100644
@@ -410,6 +410,8 @@ static inline int ext2_find_next_zero_bit(const void *vaddr, unsigned size,
 	res = ext2_find_first_zero_bit (p, size - 32 * (p - addr));
 	return (p - addr) * 32 + res;
 }
+#define ext2_find_next_bit(addr, size, off) \
+	generic_find_next_le_bit((unsigned long *)(addr), (size), (off))
 
 #endif /* __KERNEL__ */
 
include/asm-m68knommu/bitops.h +2 -0
index f8dfb7b..f43afe1 100644
@@ -294,6 +294,8 @@ found_middle:
 	return result + ffz(__swab32(tmp));
 }
 
+#define ext2_find_next_bit(addr, size, off) \
+	generic_find_next_le_bit((unsigned long *)(addr), (size), (off))
 #include <asm-generic/bitops/minix.h>
 
 #endif /* __KERNEL__ */
include/asm-powerpc/bitops.h +4 -0
index 733b4af..220d9a7 100644
@@ -359,6 +359,8 @@ static __inline__ int test_le_bit(unsigned long nr,
 unsigned long generic_find_next_zero_le_bit(const unsigned long *addr,
 				    unsigned long size, unsigned long offset);
 
+unsigned long generic_find_next_le_bit(const unsigned long *addr,
+				    unsigned long size, unsigned long offset);
 /* Bitmap functions for the ext2 filesystem */
 
 #define ext2_set_bit(nr,addr) \
@@ -378,6 +380,8 @@ unsigned long generic_find_next_zero_le_bit(const unsigned long *addr,
 #define ext2_find_next_zero_bit(addr, size, off) \
 	generic_find_next_zero_le_bit((unsigned long*)addr, size, off)
 
+#define ext2_find_next_bit(addr, size, off) \
+	generic_find_next_le_bit((unsigned long *)addr, size, off)
 /* Bitmap functions for the minix filesystem.  */
 
 #define minix_test_and_set_bit(nr,addr) \
include/asm-s390/bitops.h +2 -0
index 34d9a63..dba6fec 100644
@@ -772,6 +772,8 @@ static inline int sched_find_first_bit(unsigned long *b)
 	test_and_clear_bit((nr)^(__BITOPS_WORDSIZE - 8), (unsigned long *)addr)
 #define ext2_test_bit(nr, addr)      \
 	test_bit((nr)^(__BITOPS_WORDSIZE - 8), (unsigned long *)addr)
+#define ext2_find_next_bit(addr, size, off) \
+	generic_find_next_le_bit((unsigned long *)(addr), (size), (off))
 
 #ifndef __s390x__
 
include/linux/ext4_fs.h +1 -0
index 85395c1..cf7e90e 100644
@@ -493,6 +493,7 @@ do {									       \
 #define ext4_test_bit			ext2_test_bit
 #define ext4_find_first_zero_bit	ext2_find_first_zero_bit
 #define ext4_find_next_zero_bit		ext2_find_next_zero_bit
+#define ext4_find_next_bit		ext2_find_next_bit
 
 /*
  * Maximal mount counts between two filesystem checks
lib/find_next_bit.c +43 -0

47 lines not on this page · raw message

#3 lore raw
In reply to Andrew Morton
Quoted 11 lines · Andrew Morton
Quoted 7 lines · On Wed, 28 Nov 2007 11:00:20 +0530 "Aneesh Kumar K.V"…
Quoted 2 lines · Andrew Morton

fs/ext4/mballoc.c: In function `ext4_mb_generate_buddy':
fs/ext4/mballoc.c:836: error: implicit declaration of function `ext2_find_next_bit'

I actually sent in a patch which changes asking for review to linux-arch. I haven't got the response yet.

Don't expect one...

Is ext4 merged into the mainline kernel? So it is... Okay, I'll start caring about this patch.

Signature · 3 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
#4 lore raw
In reply to Andrew Morton
Quoted 38 lines · Andrew Morton
Quoted 6 lines · On Wed, 28 Nov 2007 11:00:20 +0530 "Aneesh Kumar K.V"…
Quoted 2 lines · Andrew Morton

fs/ext4/mballoc.c: In function `ext4_mb_generate_buddy':
fs/ext4/mballoc.c:836: error: implicit declaration of function `ext2_find_next_bit'

I actually sent in a patch which changes asking for review to linux-arch. I haven't got the response yet.

Don't expect one...

Quoted 17 lines

Attaching the patch
below

Introduce ext4_find_next_bit

From: Aneesh Kumar K.V <[email protected]>

This gets used by the ext4 multi block allocator patches.

Also add generic_find_next_le_bit

---

Quoted 9 lines
 include/asm-arm/bitops.h                     |    2 +
 include/asm-generic/bitops/ext2-non-atomic.h |    2 +
 include/asm-generic/bitops/le.h              |    4 ++
 include/asm-m68k/bitops.h                    |    2 +
 include/asm-m68knommu/bitops.h               |    2 +
 include/asm-powerpc/bitops.h                 |    4 ++
 include/asm-s390/bitops.h                    |    2 +
 include/linux/ext4_fs.h                      |    1 +
 lib/find_next_bit.c                          |   43 ++++++++++++++++++++++++++
Quoted 4 lines

May as well merge it I guess. I'll do that. Possibly it should be merged into the ext4 tree instead, so that people can build the ext4 devel tree on other architectures but obviously there's no call for that.

I will merge it to ext4 development tree.

Mingming

Quoted 5 lines

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