]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2018 22:39:49 +0000 (15:39 -0700)
commit90be0febc3b0b7fed512b887ec40aaf596e9a34c
tree97fedebf6d631326b7e25a5d4b68b3b36f600473
parentb5159842f6c04c51e5ca82fbe9cdba49d5e49ce2
sparc64: Rework xchg() definition to avoid warnings.

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>
arch/sparc/include/asm/cmpxchg_64.h