diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-27 14:17:05 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-02 12:00:15 -0400 |
commit | 664c100bce0070148131f8d49518015476c03cae (patch) | |
tree | 3c22063f673e5ec48788bb5ab6b736468dee63bc /arch/tile | |
parent | 07feea877d18453bbe4ad47fe2a365eebf56a7af (diff) | |
download | kernel_goldelico_gta04-664c100bce0070148131f8d49518015476c03cae.zip kernel_goldelico_gta04-664c100bce0070148131f8d49518015476c03cae.tar.gz kernel_goldelico_gta04-664c100bce0070148131f8d49518015476c03cae.tar.bz2 |
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>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/include/asm/bitops_64.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/tile/include/asm/bitops_64.h b/arch/tile/include/asm/bitops_64.h index 58d021a..60b87ee 100644 --- a/arch/tile/include/asm/bitops_64.h +++ b/arch/tile/include/asm/bitops_64.h @@ -38,10 +38,10 @@ static inline void clear_bit(unsigned nr, volatile unsigned long *addr) static inline void change_bit(unsigned nr, volatile unsigned long *addr) { - unsigned long old, mask = (1UL << (nr % BITS_PER_LONG)); - long guess, oldval; + unsigned long mask = (1UL << (nr % BITS_PER_LONG)); + unsigned long guess, oldval; addr += nr / BITS_PER_LONG; - old = *addr; + oldval = *addr; do { guess = oldval; oldval = atomic64_cmpxchg((atomic64_t *)addr, @@ -85,7 +85,7 @@ static inline int test_and_change_bit(unsigned nr, volatile unsigned long *addr) { unsigned long mask = (1UL << (nr % BITS_PER_LONG)); - long guess, oldval = *addr; + unsigned long guess, oldval; addr += nr / BITS_PER_LONG; oldval = *addr; do { |