From 5e0a97c26457260b7a95383fae0fc2cf2f98237d Mon Sep 17 00:00:00 2001 From: Kanoj Sarcar Date: Fri, 31 Mar 2000 22:13:50 +0000 Subject: Fix the ext2 bitop routines to enable root disk bootups. --- include/asm-mips64/bitops.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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; -- cgit v1.2.3