Christian Borntraeger 062795fcdc 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>
2019-10-11 12:27:25 +02:00
..
2017-12-05 07:51:09 +01:00
2019-04-29 10:47:10 +02:00
2019-04-25 15:34:10 +02:00
2019-04-29 10:47:10 +02:00
2019-06-19 17:54:27 +02:00
2019-08-21 12:41:43 +02:00
2019-04-29 10:47:10 +02:00
2019-02-05 14:29:23 +01:00
2019-07-12 15:35:14 -07:00
2019-04-29 10:47:10 +02:00
2019-06-07 10:09:37 +02:00
2019-02-07 18:06:18 -08:00
2019-09-17 14:04:43 -07:00
2019-06-07 10:09:42 +02:00
2019-06-07 10:09:37 +02:00
2019-05-07 19:06:04 -07:00
2019-04-03 10:32:57 +02:00
2019-06-07 10:09:37 +02:00
2019-07-23 10:45:53 +02:00
2017-12-05 07:51:09 +01:00