Commit 92f60ed8 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] more missing const in bitops prototypes

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cf63e49e
...@@ -356,7 +356,7 @@ static __inline__ int generic_fls(int x); ...@@ -356,7 +356,7 @@ static __inline__ int generic_fls(int x);
* Find first bit set in a 168-bit bitmap, where the first * Find first bit set in a 168-bit bitmap, where the first
* 128 bits are unlikely to be set. * 128 bits are unlikely to be set.
*/ */
static inline int sched_find_first_bit(unsigned long *b) static inline int sched_find_first_bit(const unsigned long *b)
{ {
unsigned long v; unsigned long v;
unsigned int off; unsigned int off;
......
...@@ -312,10 +312,10 @@ static inline int ffs(int x) ...@@ -312,10 +312,10 @@ static inline int ffs(int x)
* 'size' bits, starting the search at bit 'offset'. This is largely based * 'size' bits, starting the search at bit 'offset'. This is largely based
* on Linus's ALPHA routines, which are pretty portable BTW. * 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 size, unsigned long offset)
{ {
unsigned long *p = addr + (offset >> 5); const unsigned long *p = addr + (offset >> 5);
unsigned long result = offset & ~31UL; unsigned long result = offset & ~31UL;
unsigned long tmp; unsigned long tmp;
...@@ -446,10 +446,10 @@ static inline int __test_and_clear_le_bit(int nr, unsigned long *addr) ...@@ -446,10 +446,10 @@ static inline int __test_and_clear_le_bit(int nr, unsigned long *addr)
return retval; 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 size, unsigned long offset)
{ {
unsigned long *p = addr + (offset >> 5); const unsigned long *p = addr + (offset >> 5);
unsigned long result = offset & ~31UL; unsigned long result = offset & ~31UL;
unsigned long tmp; unsigned long tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment