]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: comedi: comedi_fops.c: added casts to get rid of sparse warnings
authorB K Karthik <bkkarthik@pesu.pes.edu>
Fri, 17 Jul 2020 10:30:31 +0000 (06:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jul 2020 14:20:37 +0000 (16:20 +0200)
commit9d5d041eebe3dcf7591ff7004896c329eb841ca6
tree5723def3d038ff71aa9bc9a343c229e481af0ca1
parent891a8d77ff12d0f161909101df08d46cc7a237ba
staging: comedi: comedi_fops.c: added casts to get rid of sparse warnings

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@live.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20200717103031.3mfnlvqo3waolsee@pesu-pes-edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c