summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-03-31 22:13:50 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-03-31 22:13:50 +0000
commit5e0a97c26457260b7a95383fae0fc2cf2f98237d (patch)
treea959fa230cb1654f9d196555557f248404bcebf9 /include
parent0b5270b32f95e11367268d13c2f4bc29cf7eadca (diff)
Fix the ext2 bitop routines to enable root disk bootups.
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips64/bitops.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-mips64/bitops.h b/include/asm-mips64/bitops.h
index 380adf616..5f27e05cf 100644
--- a/include/asm-mips64/bitops.h
+++ b/include/asm-mips64/bitops.h
@@ -376,12 +376,12 @@ ext2_test_bit(int nr, const void * addr)
#define ext2_find_first_zero_bit(addr, size) \
ext2_find_next_zero_bit((addr), (size), 0)
-extern inline unsigned long
+extern inline unsigned int
ext2_find_next_zero_bit(void *addr, unsigned long size, unsigned long offset)
{
- unsigned long *p = ((unsigned long *) addr) + (offset >> 5);
- unsigned long result = offset & ~31UL;
- unsigned long tmp;
+ unsigned int *p = ((unsigned int *) addr) + (offset >> 5);
+ unsigned int result = offset & ~31UL;
+ unsigned int tmp;
if (offset >= size)
return size;