]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc: xchg: fix `computed is not used` warning
authorStafford Horne <shorne@gmail.com>
Sun, 12 Mar 2017 22:41:55 +0000 (07:41 +0900)
committerStafford Horne <shorne@gmail.com>
Wed, 15 Mar 2017 15:12:56 +0000 (00:12 +0900)
commit7b9d357b3a85f5c3c3b3d8f208d13ba27bd83df4
tree9ff0383d923e30c90200e150641a06a19a3e86bb
parentb925dc0fa3cd58cb6756a936c80f94f655a27964
openrisc: xchg: fix `computed is not used` warning

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: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/cmpxchg.h