Re: [PATCH] m68k: add missing __user annotation in get_user()

2020-05-25 Thread Geert Uytterhoeven
On Wed, May 20, 2020 at 8:58 AM Jason Wang wrote: > 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) @@expecte

Re: [PATCH] m68k: add missing __user annotation in get_user()

2020-05-20 Thread Michael S. Tsirkin
On Wed, May 20, 2020 at 02:57:50PM +0800, Jason Wang wrote: > 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) @@

[PATCH] m68k: add missing __user annotation in get_user()

2020-05-19 Thread Jason Wang
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] [us