Commit 0dac851a authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] sparse fix for kmsg

parent b81f362a
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
extern wait_queue_head_t log_wait; extern wait_queue_head_t log_wait;
extern int do_syslog(int type, char * bug, int count); extern int do_syslog(int type, char __user *bug, int count);
static int kmsg_open(struct inode * inode, struct file * file) static int kmsg_open(struct inode * inode, struct file * file)
{ {
...@@ -30,13 +30,13 @@ static int kmsg_release(struct inode * inode, struct file * file) ...@@ -30,13 +30,13 @@ static int kmsg_release(struct inode * inode, struct file * file)
return 0; return 0;
} }
static ssize_t kmsg_read(struct file * file, char * buf, static ssize_t kmsg_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
return do_syslog(2,buf,count); return do_syslog(2, buf, count);
} }
static unsigned int kmsg_poll(struct file *file, poll_table * wait) static unsigned int kmsg_poll(struct file *file, poll_table *wait)
{ {
poll_wait(file, &log_wait, wait); poll_wait(file, &log_wait, wait);
if (do_syslog(9, 0, 0)) if (do_syslog(9, 0, 0))
......
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