linux/arch/arm/include
Russell King e001bbae71 ARM: cmpxchg: avoid warnings from macro-ized cmpxchg() implementations
A recent change in kernel/acct.c added a new warning for many
configurations on ARM:

kernel/acct.c: In function 'acct_pin_kill':
arch/arm/include/asm/cmpxchg.h:122:3: warning: value computed is not used [-Wunused-value]

The code is in fact correct, it's just a cmpxchg() call that
intentionally ignores the result, and no other code does that.  The
warning does not show up on x86 because of the way that its cmpxchg()
macro is written. This changes the ARM implementation to use a similar
construct with a compound expression instead of a typecast, which causes
the compiler to not complain about an unused result.

Fix the other macros in this file in a similar way, and place them
just below their function implementations.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-06-02 09:58:20 +01:00
..
asm ARM: cmpxchg: avoid warnings from macro-ized cmpxchg() implementations 2015-06-02 09:58:20 +01:00
debug General cleanups for MSM/QCOM for 4.1 2015-04-03 13:20:42 -07:00
uapi/asm This mostly includes the PPC changes for 4.1, which this time cover 2015-04-26 13:06:22 -07:00