• S
    openrisc: xchg: fix `computed is not used` warning · 8af42949
    Stafford Horne 提交于
    When building allmodconfig this warning shows.
    
      fs/ocfs2/file.c: In function 'ocfs2_file_write_iter':
      ./arch/openrisc/include/asm/cmpxchg.h:81:3: warning: value computed is
      not used [-Wunused-value]
        ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), sizeof(*(ptr))))
         ^
    
    Applying the same patch logic that was done to the cmpxchg macro.
    Signed-off-by: NStafford Horne <shorne@gmail.com>
    8af42949
cmpxchg.h 1.9 KB