ARM64: cmpxchg: update macros to prevent warnings
authorMark Hambleton <mahamble@broadcom.com>
Mon, 2 Dec 2013 18:10:44 +0000 (18:10 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 3 Dec 2013 18:51:39 +0000 (18:51 +0000)
commitc04e0d85bf2565725091fd652c0b444b993fd993
tree93e57d28eb3ca18b97a7003c88ecf454aafe30b1
parent4421cbec4387a2003646b061bf2210b268997444
ARM64: cmpxchg: update macros to prevent warnings

Make sure the value we are going to return is referenced in order to
avoid warnings from newer GCCs such as:

arch/arm64/include/asm/cmpxchg.h:162:3: warning: value computed is not used [-Wunused-value]
  ((__typeof__(*(ptr)))__cmpxchg_mb((ptr),   \
   ^
net/netfilter/nf_conntrack_core.c:674:2: note: in expansion of macro ‘cmpxchg’
  cmpxchg(&nf_conntrack_hash_rnd, 0, rand);

Signed-off-by: Mark Hambleton <mahamble@broadcom.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/cmpxchg.h