]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: use __inttype() in get_user()
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 9 Jul 2018 14:22:45 +0000 (15:22 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 2 Aug 2018 16:41:38 +0000 (17:41 +0100)
commit36dfc79710a5a264dd51e673220fd7f9918201c9
tree4a379d3b12129b5f902337e56834eeeb7eef6b22
parent148f0fa37f7f8cbbc1a28862a5e1fb330438dd6f
ARM: use __inttype() in get_user()

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>
arch/arm/include/asm/uaccess.h