]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qdio: fix atomic_sub() misusage
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 16 Sep 2013 04:59:50 +0000 (06:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 24 Oct 2013 15:16:50 +0000 (17:16 +0200)
commite68a6c4fffc7c4d8102e0e9413a485194c8b50fb
tree6edc23c51511ce72a655a477603a3378d5393fee
parent762039a12497ef3f574347e1f6d6be3a76c2cde7
s390/qdio: fix atomic_sub() misusage

get_inbound_buffer_frontier() makes use of the return value of atomic_sub()
which shouldn't work, since atomic_sub() is supposed to return void.
This only works on s390 because atomic_sub() gets mapped to atomic_sub_return()
with a define without changing it's return value to void.

So use atomic_sub_return() instead of atomic_sub() in qeth code before fixing
atomic ops.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_main.c