]> asedeno.scripts.mit.edu Git - linux.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)
commitd09fbb327d670737ab40fd8bbb0765ae06b8b739
tree4a379d3b12129b5f902337e56834eeeb7eef6b22
parent8c8484a1c18e3231648f5ba7cc5ffb7fd70b3ca4
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