summaryrefslogtreecommitdiffstats
path: root/drivers/hwspinlock
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2019-10-08 17:02:32 +0200
committerVasily Gorbik <gor@linux.ibm.com>2019-10-11 12:27:25 +0200
commit062795fcdcb2d22822fb42644b1d76a8ad8439b3 (patch)
tree30b8771f4c086abd7c48e7b6de02e110758bf8e2 /drivers/hwspinlock
parent05668e1d74b84c53fbe0f28565e4c9502a6b8a67 (diff)
downloadblackbird-op-linux-062795fcdcb2d22822fb42644b1d76a8ad8439b3.tar.gz
blackbird-op-linux-062795fcdcb2d22822fb42644b1d76a8ad8439b3.zip
s390/uaccess: avoid (false positive) compiler warnings
Depending on inlining decisions by the compiler, __get/put_user_fn might become out of line. Then the compiler is no longer able to tell that size can only be 1,2,4 or 8 due to the check in __get/put_user resulting in false positives like ./arch/s390/include/asm/uaccess.h: In function ‘__put_user_fn’: ./arch/s390/include/asm/uaccess.h:113:9: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized] 113 | return rc; | ^~ ./arch/s390/include/asm/uaccess.h: In function ‘__get_user_fn’: ./arch/s390/include/asm/uaccess.h:143:9: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized] 143 | return rc; | ^~ These functions are supposed to be always inlined. Mark it as such. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/hwspinlock')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud