diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2019-10-08 17:02:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-06 13:08:46 +0100 |
commit | bf8c1108547174bb777870e2c671a092ccdf0b9c (patch) | |
tree | 6aef525027c10c064a6ba2de852be256809f2fb1 /arch/alpha | |
parent | 993ab8deb65a6c2029376e543ce96171ab0a70fb (diff) | |
download | linux-stable-bf8c1108547174bb777870e2c671a092ccdf0b9c.tar.gz linux-stable-bf8c1108547174bb777870e2c671a092ccdf0b9c.tar.bz2 linux-stable-bf8c1108547174bb777870e2c671a092ccdf0b9c.zip |
s390/uaccess: avoid (false positive) compiler warnings
[ Upstream commit 062795fcdcb2d22822fb42644b1d76a8ad8439b3 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/alpha')
0 files changed, 0 insertions, 0 deletions