mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sparse annotations for MSR driver
@ 2003-08-11 15:59 davej
  0 siblings, 0 replies; only message in thread
From: davej @ 2003-08-11 15:59 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-11 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 15:59 [PATCH] sparse annotations for MSR driver davej

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®