linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *
@ 2020-07-15  4:48 B K Karthik
  2020-07-15  7:08 ` Greg Kroah-Hartman
  2020-07-15 11:19 ` Ian Abbott
  0 siblings, 2 replies; 14+ messages in thread
From: B K Karthik @ 2020-07-15  4:48 UTC (permalink / raw)
  To: Ian Abbott, H Hartley Sweeten, Greg Kroah-Hartman, Al Viro,
	Xiyu Yang, Michel Lespinasse, Divyansh Kamboj, devel,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

fixed a sparse warning by changing the type in
assignment from void [noderef] __user * to unsigned int *
(different address space)

Signed-off-by: B K Karthik <karthik.bk2000@live.com>
---
 drivers/staging/comedi/comedi_fops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index 3f70e5dfac39..4cc012e231b7 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -2956,7 +2956,7 @@ static int get_compat_cmd(struct comedi_cmd *cmd,
 	cmd->scan_end_arg = v32.scan_end_arg;
 	cmd->stop_src = v32.stop_src;
 	cmd->stop_arg = v32.stop_arg;
-	cmd->chanlist = compat_ptr(v32.chanlist);
+	cmd->chanlist = (unsigned int *) compat_ptr(v32.chanlist);
 	cmd->chanlist_len = v32.chanlist_len;
 	cmd->data = compat_ptr(v32.data);
 	cmd->data_len = v32.data_len;
-- 
2.20.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-07-15 11:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15  4:48 [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int * B K Karthik
2020-07-15  7:08 ` Greg Kroah-Hartman
2020-07-15  8:30   ` B K Karthik
     [not found]   ` <CAAhDqq3u_0wCRGDaWRGgtC6bkx6t+AubAXfnX_f7V0t10BRuuA@mail.gmail.com>
2020-07-15  8:31     ` Greg Kroah-Hartman
2020-07-15  8:41       ` B K Karthik
2020-07-15  8:47         ` B K Karthik
2020-07-15  9:19           ` Greg Kroah-Hartman
2020-07-15  9:22             ` B K Karthik
2020-07-15  9:14         ` Greg Kroah-Hartman
2020-07-15  9:21           ` B K Karthik
2020-07-15  9:28             ` Greg Kroah-Hartman
2020-07-15  9:35               ` B K Karthik
2020-07-15 11:19 ` Ian Abbott
2020-07-15 11:34   ` B K Karthik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).