Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: yurex: fixed sparse warning of incorrect type

fixed sparse warning of
1) incorrect type (different address spaces)
2) incorrect type in initializer

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sudip Mukherjee and committed by
Greg Kroah-Hartman
1cc373c6 e50a322e

+4 -2
+4 -2
drivers/usb/misc/yurex.c
··· 410 410 return 0; 411 411 } 412 412 413 - static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t *ppos) 413 + static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count, 414 + loff_t *ppos) 414 415 { 415 416 struct usb_yurex *dev; 416 417 int retval = 0; ··· 445 444 return retval; 446 445 } 447 446 448 - static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos) 447 + static ssize_t yurex_write(struct file *file, const char __user *user_buffer, 448 + size_t count, loff_t *ppos) 449 449 { 450 450 struct usb_yurex *dev; 451 451 int i, set = 0, retval = 0;