Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch/tile: fix gcc 4.6 warnings in <asm/bitops_64.h>

Fix some signedness and variable usage warnings in change_bit()
and test_and_change_bit().

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>

+4 -4
+4 -4
arch/tile/include/asm/bitops_64.h
··· 38 38 39 39 static inline void change_bit(unsigned nr, volatile unsigned long *addr) 40 40 { 41 - unsigned long old, mask = (1UL << (nr % BITS_PER_LONG)); 42 - long guess, oldval; 41 + unsigned long mask = (1UL << (nr % BITS_PER_LONG)); 42 + unsigned long guess, oldval; 43 43 addr += nr / BITS_PER_LONG; 44 - old = *addr; 44 + oldval = *addr; 45 45 do { 46 46 guess = oldval; 47 47 oldval = atomic64_cmpxchg((atomic64_t *)addr, ··· 85 85 volatile unsigned long *addr) 86 86 { 87 87 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); 88 - long guess, oldval = *addr; 88 + unsigned long guess, oldval; 89 89 addr += nr / BITS_PER_LONG; 90 90 oldval = *addr; 91 91 do {