]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
sparc64: Rework xchg() definition to avoid warnings.
authorDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2018 22:39:49 +0000 (15:39 -0700)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:20:56 +0000 (14:20 -0300)
commitbf5f714351d902ebf2e7432aeaf3815ca5cdf1de
treea0f94f332293e7ff5b0c8647f48b22ad21aa14e3
parent1672eda56333cc5da35c683765fcf4c4368dcc32
sparc64: Rework xchg() definition to avoid warnings.

BugLink: https://bugs.launchpad.net/bugs/1854975
[ Upstream commit 6c2fc9cddc1ffdef8ada1dc8404e5affae849953 ]

Such as:

fs/ocfs2/file.c: In function ‘ocfs2_file_write_iter’:
./arch/sparc/include/asm/cmpxchg_64.h:55:22: warning: value computed is not used [-Wunused-value]
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))

and

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c: In function ‘ixgbevf_xdp_setup’:
./arch/sparc/include/asm/cmpxchg_64.h:55:22: warning: value computed is not used [-Wunused-value]
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/sparc/include/asm/cmpxchg_64.h