diff options
author | Mark Hambleton <mahamble@broadcom.com> | 2013-12-03 20:19:12 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-12-19 18:44:05 +0100 |
commit | 60010e508111b2fd3d73de56f3b2c2bfc0f9eba1 (patch) | |
tree | ea8b6fc26647563fa615766b361990ab15a3d6a1 /kernel | |
parent | arm64: support single-step and breakpoint handler hooks (diff) | |
download | linux-60010e508111b2fd3d73de56f3b2c2bfc0f9eba1.tar.xz linux-60010e508111b2fd3d73de56f3b2c2bfc0f9eba1.zip |
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);
[Modified to use the current underlying implementation as current
mainline for both cmpxchg() and cmpxchg_local() does -- broonie]
Signed-off-by: Mark Hambleton <mahamble@broadcom.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions