From: Mark Hambleton Date: Tue, 3 Dec 2013 19:19:12 +0000 (+0000) Subject: arm64: cmpxchg: update macros to prevent warnings X-Git-Tag: v3.14-rc1~153^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60010e508111b2fd3d73de56f3b2c2bfc0f9eba1;p=pandora-kernel.git 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 Signed-off-by: Mark Brown Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed