]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sparse: drivers/pnp annotation
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 3 Jun 2004 13:27:43 +0000 (06:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 13:27:43 +0000 (06:27 -0700)
drivers/pnp/isapnp/proc.c
drivers/pnp/pnpbios/proc.c

index 0a94ee9db07260f6dc75eba093ef92d994f228c5..cf54b0a3628e64fe2d6c642eb191ba703fd74b18 100644 (file)
@@ -55,7 +55,7 @@ static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence)
        return (file->f_pos = new);
 }
 
-static ssize_t isapnp_proc_bus_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos)
+static ssize_t isapnp_proc_bus_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
 {
        struct inode *ino = file->f_dentry->d_inode;
        struct proc_dir_entry *dp = PDE(ino);
index 063ae5ecf1d0ce3061ce6be47d3299e752ab7012..88fcd1668766147c14bef34549a3cb0d501580f0 100644 (file)
@@ -176,7 +176,7 @@ static int proc_read_node(char *buf, char **start, off_t pos,
        return len;
 }
 
-static int proc_write_node(struct file *file, const char *buf,
+static int proc_write_node(struct file *file, const char __user *buf,
                            unsigned long count, void *data)
 {
        struct pnp_bios_node *node;