summaryrefslogtreecommitdiff
path: root/arch/sparc/Kconfig
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2020-10-19 22:33:28 -0700
committerDavid S. Miller <davem@davemloft.net>2021-02-18 16:40:22 -0800
commit356184fb6d67770d7788f316226be810a430937b (patch)
tree3f836ec155abc2f790f42c9d68e6e56199eb1a8e /arch/sparc/Kconfig
parent147d8622f2a26ef34beacc60e1ed8b66c2fa457f (diff)
sparc: make xchg() into a statement expression
Fix several of the same warning by using a GCC statement expression (extension): ../arch/sparc/include/asm/cmpxchg_32.h:28:22: warning: value computed is not used [-Wunused-value] 28 | #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) Passes sparc32 allmodconfig with no xchg warnings. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: "David S. Miller" <davem@davemloft.net> Cc: sparclinux@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/Kconfig')
0 files changed, 0 insertions, 0 deletions