diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2018-10-15 11:32:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-18 09:16:28 +0200 |
commit | f64824a3d475b573cbab5c35942223e0474096be (patch) | |
tree | 9fd5c5b23c788c6504182eadb44619133e9b066c /tools/perf/builtin-script.c | |
parent | 70b96be10d151cf088c991a018889ee76b1c6c0e (diff) | |
download | linux-stable-f64824a3d475b573cbab5c35942223e0474096be.tar.gz linux-stable-f64824a3d475b573cbab5c35942223e0474096be.tar.bz2 linux-stable-f64824a3d475b573cbab5c35942223e0474096be.zip |
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions