Skip to content
Commit 2941a473 authored by Jason Wang's avatar Jason Wang Committed by Geert Uytterhoeven
Browse files

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: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20200520065750.8401-1-jasowang@redhat.com


Fixes: 7124330d ("m68k/uaccess: Revive 64-bit get_user()")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent b2003c7a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment