Messages in this thread Patch in this message | | | From | davej@redhat ... | Subject | [PATCH] sparse annotations for MSR driver | Date | Mon, 11 Aug 2003 16:59:02 +0100 |
| |
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/arch/i386/kernel/msr.c linux-2.5/arch/i386/kernel/msr.c --- bk-linus/arch/i386/kernel/msr.c 2003-05-15 12:44:46.000000000 +0100 +++ linux-2.5/arch/i386/kernel/msr.c 2003-07-13 16:55:50.000000000 +0100 @@ -187,7 +187,7 @@ static loff_t msr_seek(struct file *file 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 * fi 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |