X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-sparc%2Fbitops.h;h=41722b5e45ef02da75ec02d35eed5c90ac7f8a91;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=c1009b30e80da1bd3ff3af5a323942f96b00970b;hpb=70790a4b5cd6c0291e5b1a2836e2832d46036ac6;p=linux-2.6.git diff --git a/include/asm-sparc/bitops.h b/include/asm-sparc/bitops.h index c1009b30e..41722b5e4 100644 --- a/include/asm-sparc/bitops.h +++ b/include/asm-sparc/bitops.h @@ -298,6 +298,7 @@ static inline int ffs(int x) * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. */ #define fls(x) generic_fls(x) +#define fls64(x) generic_fls64(x) /* * hweightN: returns the hamming weight (i.e. the number @@ -312,10 +313,10 @@ static inline int ffs(int x) * 'size' bits, starting the search at bit 'offset'. This is largely based * on Linus's ALPHA routines, which are pretty portable BTW. */ -static inline unsigned long find_next_zero_bit(unsigned long *addr, +static inline unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, unsigned long offset) { - unsigned long *p = addr + (offset >> 5); + const unsigned long *p = addr + (offset >> 5); unsigned long result = offset & ~31UL; unsigned long tmp; @@ -446,10 +447,10 @@ static inline int __test_and_clear_le_bit(int nr, unsigned long *addr) return retval; } -static inline unsigned long find_next_zero_le_bit(unsigned long *addr, +static inline unsigned long find_next_zero_le_bit(const unsigned long *addr, unsigned long size, unsigned long offset) { - unsigned long *p = addr + (offset >> 5); + const unsigned long *p = addr + (offset >> 5); unsigned long result = offset & ~31UL; unsigned long tmp;