[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAhDqq3EeWGOJHaW37iQN5UgmvTf3AP10fhrVdJ5GuYjBt8f3w@mail.gmail.com>
Date: Thu, 16 Jul 2020 10:28:06 -0400
From: B K Karthik <bkkarthik@...u.pes.edu>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Ian Abbott <abbotti@....co.uk>,
H Hartley Sweeten <hsweeten@...ionengravers.com>,
Al Viro <viro@...iv.linux.org.uk>,
Vlastimil Babka <vbabka@...e.cz>,
Xiyu Yang <xiyuyang19@...an.edu.cn>,
Michel Lespinasse <walken@...gle.com>,
Divyansh Kamboj <kambojdivyansh2000@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] staging: comedi: comedi_fops.c: added casts to get rid
of sparse warnings
On Thu, Jul 16, 2020 at 10:25 AM Greg Kroah-Hartman
<gregkh@...uxfoundation.org> wrote:
>
> On Thu, Jul 16, 2020 at 10:17:47AM -0400, B K Karthik wrote:
> > fixed sparse warnings by adding a cast in assignment from
> > void [noderef] __user * to unsigned int __force *
> > and a reverse cast in argument from
> > unsigned int * to unsigned int __user * .
> >
> > Signed-off-by: B K Karthik <karthik.bk2000@...e.com>
> > ---
> > drivers/staging/comedi/comedi_fops.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
>
> What changed from previous versions?
As Ian Abbott said "Minor quibble: the reverse cast is actually from
unsigned int * to"
Hence this is a change in the commit description.
>
> That always goes below the --- line.
I did not understand this sir, can you please clarify?
thanks,
karthik
Powered by blists - more mailing lists