From 0dac851a97e2c0d1db6dc106e78541540f942b32 Mon Sep 17 00:00:00 2001 From: "Andries E. Brouwer" Date: Mon, 8 Sep 2003 18:56:12 -0700 Subject: [PATCH] [PATCH] sparse fix for kmsg --- fs/proc/kmsg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/proc/kmsg.c b/fs/proc/kmsg.c index 5706afe8e8876..9cfb5d6d3c5e2 100644 --- a/fs/proc/kmsg.c +++ b/fs/proc/kmsg.c @@ -17,7 +17,7 @@ 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) { @@ -30,13 +30,13 @@ static int kmsg_release(struct inode * inode, struct file * file) 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) { - 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); if (do_syslog(9, 0, 0)) -- 2.53.0