diff options
author | Stafford Horne <shorne@gmail.com> | 2020-08-04 02:42:20 +0300 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2020-08-09 01:57:00 +0300 |
commit | 17fcd83c2b621333eb4b4874c54a30891735700f (patch) | |
tree | 486ea50a5dac45e857e2e7e06bf1b34f8d6262b5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 045838bc7f47f142df82a5a95a1ced73d80705e1 (diff) | |
download | linux-17fcd83c2b621333eb4b4874c54a30891735700f.tar.xz |
openrisc: uaccess: Fix sparse address space warnings
The OpenRISC user access functions put_user(), get_user() and
clear_user() were missing proper sparse annotations. This generated
warnings like the below.
This patch adds the annotations to fix the warnings.
Example warnings:
net/ipv4/ip_sockglue.c:759:29: warning: incorrect type in argument 1 (different address spaces)
net/ipv4/ip_sockglue.c:759:29: expected void const volatile [noderef] __user *
net/ipv4/ip_sockglue.c:759:29: got int const *__gu_addr
net/ipv4/ip_sockglue.c:764:29: warning: incorrect type in initializer (different address spaces)
net/ipv4/ip_sockglue.c:764:29: expected unsigned char const *__gu_addr
net/ipv4/ip_sockglue.c:764:29: got unsigned char [noderef] __user *
Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions