mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] x86: handle -Wsign-compare in bitops
Make i386's find_first_bit() use an unsigned integer as a counter to avoid getting warnings when -Wsign-compare is given. Signed-Off-By: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2684927c6b
commit
d89c145c03
1 changed files with 2 additions and 2 deletions
|
|
@ -332,9 +332,9 @@ static inline unsigned long __ffs(unsigned long word)
|
|||
* Returns the bit-number of the first set bit, not the number of the byte
|
||||
* containing a bit.
|
||||
*/
|
||||
static inline int find_first_bit(const unsigned long *addr, unsigned size)
|
||||
static inline unsigned find_first_bit(const unsigned long *addr, unsigned size)
|
||||
{
|
||||
int x = 0;
|
||||
unsigned x = 0;
|
||||
|
||||
while (x < size) {
|
||||
unsigned long val = *addr++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue