]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cmpxchg: fix compile warnings specific to s390
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 29 May 2012 06:28:38 +0000 (08:28 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 30 May 2012 07:07:56 +0000 (09:07 +0200)
commite814604b9ec39fb16905bf3fa1be83616425296d
treea8f7ccdac4e6a152a41f11e804519f7f13af913a
parentd8ecd51f28f4157c6c1d4b0aacbd6723aebbb9f5
s390/cmpxchg: fix compile warnings specific to s390

The cmpxchg macros and functions are a bit different than on other
architectures. In particular the macros do not store the return
value of a __cmpxchg function call in a variable before returning the
value.

This causes compile warnings that only occur on s390 like this one:

net/ipv4/af_inet.c: In function 'build_ehash_secret':
net/ipv4/af_inet.c:241:2: warning: value computed is not used [-Wunused-value]

To get rid of these warnings use the same construct that we already use
for the xchg macro, which was introduced for the same reason.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cmpxchg.h