]> git.baikalelectronics.ru Git - kernel.git/commit
m32r: fix build warning
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 22 Feb 2017 23:40:35 +0000 (15:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Feb 2017 00:41:27 +0000 (16:41 -0800)
commitb481f7e201ffe053e90a39a02b3fcfc9c32fc65e
tree0af9902259cd46e020b4a2188bc8cc52a397da44
parente2caf95d3e6a2bd8f145d39c264721c5e4613397
m32r: fix build warning

Some m32r builds were having a warning:

  arch/m32r/include/asm/cmpxchg.h:191:3: warning: value computed is not used
  arch/m32r/include/asm/cmpxchg.h:68:3: warning: value computed is not used

Taking the idea from commit 87a89cb97f1b ("ARM: cmpxchg: avoid warnings
from macro-ized cmpxchg() implementations") the m32r implementation is
changed to use a similar construct with a compound expression instead of
a typecast, which causes the compiler to not complain about an unused
result.

Link: http://lkml.kernel.org/r/1484432664-7015-1-git-send-email-sudipm.mukherjee@gmail.com
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m32r/include/asm/cmpxchg.h