• David S. Miller's avatar
    sparc64: Rework xchg() definition to avoid warnings. · 6c2fc9cd
    David S. Miller authored
    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: default avatarDavid S. Miller <davem@davemloft.net>
    6c2fc9cd
cmpxchg_64.h 5.13 KB