diff options
author | Greg Ungerer <gerg@snapgear.com> | 2005-09-12 11:18:10 +1000 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-11 20:43:46 -0700 |
commit | 9c1ee9387c0ce06d573e2d27de10cbc24179941e (patch) | |
tree | d55ad0c26509120df9a2acf849555ceaaa29b0f6 /include | |
parent | df28f34bf998795c4d4e08c1604eac0a6d84f502 (diff) | |
download | linux-9c1ee9387c0ce06d573e2d27de10cbc24179941e.tar.gz linux-9c1ee9387c0ce06d573e2d27de10cbc24179941e.tar.bz2 linux-9c1ee9387c0ce06d573e2d27de10cbc24179941e.zip |
[PATCH] m68knommu: change addr arg to const in bitops.h/find_next_zero_bit()
Change addr arg to find_next_zero_bit to be a const.
Cleans up compiler warning.
Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-m68knommu/bitops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-m68knommu/bitops.h b/include/asm-m68knommu/bitops.h index f95e32b40425..c42f88a9b9f9 100644 --- a/include/asm-m68knommu/bitops.h +++ b/include/asm-m68knommu/bitops.h @@ -259,7 +259,7 @@ static __inline__ int __test_bit(int nr, const volatile unsigned long * addr) #define find_first_bit(addr, size) \ find_next_bit((addr), (size), 0) -static __inline__ int find_next_zero_bit (void * addr, int size, int offset) +static __inline__ int find_next_zero_bit (const void * addr, int size, int offset) { unsigned long *p = ((unsigned long *) addr) + (offset >> 5); unsigned long result = offset & ~31UL; |