aboutsummaryrefslogtreecommitdiffstats
path: root/init/init_task.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2020-05-20 06:57:50 +0000
committerGeert Uytterhoeven <[email protected]>2020-05-25 08:55:56 +0000
commit2941a4731fd24d5e43ef437cca90818f87fd4851 (patch)
treed94984ed2f2b4aa500e67076c6087043441b1dd6 /init/init_task.c
parentm68k: mac: Avoid stuck ISM IOP interrupt on Quadra 900/950 (diff)
downloadkernel-2941a4731fd24d5e43ef437cca90818f87fd4851.tar.gz
kernel-2941a4731fd24d5e43ef437cca90818f87fd4851.zip
m68k: Add missing __user annotation in get_user()
The ptr is a pointer to userspace memory. So we need annotate it with __user otherwise we may get sparse warnings like: drivers/vhost/vhost.c:1603:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const *__gu_ptr @@ got unsigned int [noderef] [usertypvoid const *__gu_ptr @@ drivers/vhost/vhost.c:1603:13: sparse: expected void const *__gu_ptr drivers/vhost/vhost.c:1603:13: sparse: got unsigned int [noderef] [usertype] <asn:1> *idxp Reported-by: kbuild test robot <[email protected]> Signed-off-by: Jason Wang <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: 7124330dabe5b3cb ("m68k/uaccess: Revive 64-bit get_user()") Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions