Re: [PATCH] drm: add __user attribute to ptr_to_compat()

2019-03-04 Thread Sean Paul
On Fri, Mar 01, 2019 at 12:00:46PM +, Ben Dooks wrote: > The ptr_to_compat() call takes a "void __user *", so cast > the compat drm calls that use it to avoid the following > warnings from sparse: > > drivers/gpu/drm/drm_ioc32.c:188:39: warning: incorrect type in argument 1 > (different

[PATCH] drm: add __user attribute to ptr_to_compat()

2019-03-03 Thread Ben Dooks
The ptr_to_compat() call takes a "void __user *", so cast the compat drm calls that use it to avoid the following warnings from sparse: drivers/gpu/drm/drm_ioc32.c:188:39: warning: incorrect type in argument 1 (different address spaces) drivers/gpu/drm/drm_ioc32.c:188:39:expected void