diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2018-07-09 15:22:45 +0100 |
---|---|---|
committer | David A. Long <dave.long@linaro.org> | 2018-10-30 23:23:46 -0400 |
commit | 142fee8a5498ccd0a377d20c5072b7dc9a2c359b (patch) | |
tree | e078bb9c54fa0593613d761bd68b0d5818ab7c36 /arch/arm/include/asm/atomic.h | |
parent | 0b8c16eeb3adc7279a22597913abec188e7f741a (diff) |
ARM: use __inttype() in get_user()
Commit d09fbb327d670737ab40fd8bbb0765ae06b8b739 upstream.
Borrow the x86 implementation of __inttype() to use in get_user() to
select an integer type suitable to temporarily hold the result value.
This is necessary to avoid propagating the volatile nature of the
result argument, which can cause the following warning:
lib/iov_iter.c:413:5: warning: optimization may eliminate reads and/or writes to register variables [-Wvolatile-register-var]
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David A. Long <dave.long@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/atomic.h')
0 files changed, 0 insertions, 0 deletions