linux/arch/sparc
Randy Dunlap 356184fb6d 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>
2021-02-18 16:40:22 -08:00
..
boot sparc: piggyback: handle invalid image 2020-06-22 15:44:44 -07:00
configs sparc: sparc64_defconfig: add necessary configs for qemu 2021-02-18 16:17:39 -08:00
crypto crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h 2020-05-08 15:32:17 +10:00
include sparc: make xchg() into a statement expression 2021-02-18 16:40:22 -08:00
kernel sparc: fix led.c driver when PROC_FS is not enabled 2021-02-18 16:31:13 -08:00
lib sparc32: fix a user-triggerable oops in clear_user() 2020-07-21 18:23:55 -07:00
math-emu sparc: Use fallthrough pseudo-keyword 2020-07-21 18:28:00 -07:00
mm sparc32: Fix comparing pointer to 0 coccicheck warning 2021-02-18 16:32:01 -08:00
net treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
oprofile
power
prom
vdso mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
Kbuild
Kconfig sparc64: only select COMPAT_BINFMT_ELF if BINFMT_ELF is set 2021-02-18 16:28:18 -08:00
Kconfig.debug
Makefile