Commit f7ef32d3 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] sparse annotations for MSR driver

parent e4aff9bf
......@@ -187,7 +187,7 @@ static loff_t msr_seek(struct file *file, loff_t offset, int orig)
return ret;
}
static ssize_t msr_read(struct file * file, char * buf,
static ssize_t msr_read(struct file * file, char __user * buf,
size_t count, loff_t *ppos)
{
u32 *tmp = (u32 *)buf;
......@@ -212,7 +212,7 @@ static ssize_t msr_read(struct file * file, char * buf,
return ((char *)tmp) - buf;
}
static ssize_t msr_write(struct file * file, const char * buf,
static ssize_t msr_write(struct file * file, const char __user * buf,
size_t count, loff_t *ppos)
{
const u32 *tmp = (const u32 *)buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment