linux/drivers/staging/i4l
Sudip Mukherjee 8a0b09d905 staging: i4l: icn: fix incorrect type of arguments
sparse was warning about incorrect type of argument:

drivers/staging/i4l/icn/icn.c:1048:49: warning: incorrect type in argument 2 (different address spaces)
drivers/staging/i4l/icn/icn.c:1048:49: expected void const [noderef] <asn:1>*from
drivers/staging/i4l/icn/icn.c:1048:49: got unsigned char const [usertype] *buf
drivers/staging/i4l/icn/icn.c:1476:38: warning: incorrect type in argument 1 (different address spaces)
drivers/staging/i4l/icn/icn.c:1476:38: expected unsigned char const [usertype] *buf
drivers/staging/i4l/icn/icn.c:1476:38: got unsigned char const [noderef] [usertype] <asn:1>*buf

The function icn_writecmd() was used to copy from userspace and also
from the kernelspace. Add another argument to the function to have two
separate pointers, one for the userspace and one for the kernelspace.
Based on the value of user as passed from the caller we use one of
the two pointers.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-31 09:24:41 +02:00
..
act2000 staging: i4l: act2000: remove unused macro 2016-08-31 09:24:40 +02:00
Documentation
icn staging: i4l: icn: fix incorrect type of arguments 2016-08-31 09:24:41 +02:00
pcbit staging: i4l: Reformat braces around else 2016-08-21 17:23:18 +02:00
Kconfig
Makefile
TODO