* [PATCH] usb: yurex: fixed sparse warning of incorrect type
@ 2014-10-10 12:49 Sudip Mukherjee
2014-11-03 9:49 ` Sudip Mukherjee
0 siblings, 1 reply; 2+ messages in thread
From: Sudip Mukherjee @ 2014-10-10 12:49 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Sudip Mukherjee, linux-usb, linux-kernel
fixed sparse warning of
1) incorrect type (different address spaces)
2) incorrect type in initializer
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
drivers/usb/misc/yurex.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c
index c3a45da..343fa6f 100644
--- a/drivers/usb/misc/yurex.c
+++ b/drivers/usb/misc/yurex.c
@@ -410,7 +410,8 @@ static int yurex_release(struct inode *inode, struct file *file)
return 0;
}
-static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t *ppos)
+static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count,
+ loff_t *ppos)
{
struct usb_yurex *dev;
int retval = 0;
@@ -444,7 +445,8 @@ exit:
return retval;
}
-static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos)
+static ssize_t yurex_write(struct file *file, const char __user *user_buffer,
+ size_t count, loff_t *ppos)
{
struct usb_yurex *dev;
int i, set = 0, retval = 0;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: yurex: fixed sparse warning of incorrect type
2014-10-10 12:49 [PATCH] usb: yurex: fixed sparse warning of incorrect type Sudip Mukherjee
@ 2014-11-03 9:49 ` Sudip Mukherjee
0 siblings, 0 replies; 2+ messages in thread
From: Sudip Mukherjee @ 2014-11-03 9:49 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-usb, linux-kernel
On Fri, Oct 10, 2014 at 06:19:45PM +0530, Sudip Mukherjee wrote:
> fixed sparse warning of
> 1) incorrect type (different address spaces)
> 2) incorrect type in initializer
>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> ---
> drivers/usb/misc/yurex.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c
> index c3a45da..343fa6f 100644
> --- a/drivers/usb/misc/yurex.c
> +++ b/drivers/usb/misc/yurex.c
> @@ -410,7 +410,8 @@ static int yurex_release(struct inode *inode, struct file *file)
> return 0;
> }
>
> -static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t *ppos)
> +static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count,
> + loff_t *ppos)
> {
> struct usb_yurex *dev;
> int retval = 0;
> @@ -444,7 +445,8 @@ exit:
> return retval;
> }
>
> -static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos)
> +static ssize_t yurex_write(struct file *file, const char __user *user_buffer,
> + size_t count, loff_t *ppos)
> {
> struct usb_yurex *dev;
> int i, set = 0, retval = 0;
> --
> 1.8.1.2
>
gentle ping
thanks
sudip
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-03 9:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-10 12:49 [PATCH] usb: yurex: fixed sparse warning of incorrect type Sudip Mukherjee
2014-11-03 9:49 ` Sudip Mukherjee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox