From: David Howells 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 Signed-off-by: Andrew Morton --- include/asm-i386/bitops.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/asm-i386/bitops.h~x86-handle-wsign-compare-in-bitops include/asm-i386/bitops.h --- 25/include/asm-i386/bitops.h~x86-handle-wsign-compare-in-bitops Mon Nov 14 15:05:12 2005 +++ 25-akpm/include/asm-i386/bitops.h Mon Nov 14 15:05:12 2005 @@ -332,9 +332,9 @@ static inline unsigned long __ffs(unsign * 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++; _