diff options
author | Max Filippov <[email protected]> | 2020-05-22 10:54:32 -0700 |
---|---|---|
committer | Max Filippov <[email protected]> | 2020-05-22 14:32:13 -0700 |
commit | 3ac4a615bdb10ee7df8818ff107f974322e4c190 (patch) | |
tree | ac38cd5af5bdc933ae4ca6cf349928d823d47fba /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce (diff) |
xtensa: add missing __user annotations to __{get,put}_user_check
__get_user_check and __put_user_check use temporary pointer but don't
mark it as __user, resulting in sparse warnings:
sparse: warning: incorrect type in initializer (different address spaces)
sparse: expected long *__pu_addr
sparse: got long [noderef] <asn:1> *ret
sparse: warning: incorrect type in argument 1 (different address spaces)
sparse: expected void [noderef] <asn:1> *to
sparse: got long *__pu_addr
Add __user annotation to temporary pointer in __get_user_check and
__put_user_check.
Reported-by: kbuild test robot <[email protected]>
Reported-by: Arnd Bergmann <[email protected]>
Signed-off-by: Max Filippov <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions