Re: [PATCH] staging: comedi: cast to (void __user *)

2021-02-18 Thread Atul Gopinathan
On Thu, Feb 18, 2021 at 08:10:28AM +0100, Greg KH wrote: > On Thu, Feb 18, 2021 at 11:58:40AM +0530, Atul Gopinathan wrote: > > Resolve the following sparse warning: > > drivers/staging//comedi/comedi_fops.c:2983:41: warning: incorrect type in > > argument 1 (different address spaces) > >

Re: [PATCH] staging: comedi: cast to (void __user *)

2021-02-18 Thread Greg KH
On Thu, Feb 18, 2021 at 11:58:40AM +0530, Atul Gopinathan wrote: > Resolve the following sparse warning: > drivers/staging//comedi/comedi_fops.c:2983:41: warning: incorrect type in > argument 1 (different address spaces) > drivers/staging//comedi/comedi_fops.c:2983:41:expected void [noderef]

[PATCH] staging: comedi: cast to (void __user *)

2021-02-17 Thread Atul Gopinathan
Resolve the following sparse warning: drivers/staging//comedi/comedi_fops.c:2983:41: warning: incorrect type in argument 1 (different address spaces) drivers/staging//comedi/comedi_fops.c:2983:41:expected void [noderef] *uptr drivers/staging//comedi/comedi_fops.c:2983:41:got unsigned