Re: [PATCH] And yet more PCI fixes for 2.5.70

From: Greg KH (greg@kroah.com)
Date: Tue Jun 10 2003 - 19:11:56 EST


ChangeSet 1.1398, 2003/06/10 16:33:42-07:00, greg@kroah.com

[PATCH] PCI: sparse fixups for drivers/pci/proc.c

 drivers/pci/proc.c | 6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -Nru a/drivers/pci/proc.c b/drivers/pci/proc.c
--- a/drivers/pci/proc.c Tue Jun 10 17:03:59 2003
+++ b/drivers/pci/proc.c Tue Jun 10 17:03:59 2003
@@ -44,7 +44,7 @@
 }
 
 static ssize_t
-proc_bus_pci_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos)
+proc_bus_pci_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
 {
         const struct inode *ino = file->f_dentry->d_inode;
         const struct proc_dir_entry *dp = PDE(ino);
@@ -126,7 +126,7 @@
 }
 
 static ssize_t
-proc_bus_pci_write(struct file *file, const char *buf, size_t nbytes, loff_t *ppos)
+proc_bus_pci_write(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos)
 {
         const struct inode *ino = file->f_dentry->d_inode;
         const struct proc_dir_entry *dp = PDE(ino);
@@ -323,7 +323,7 @@
 {
         struct list_head *p = v;
         (*pos)++;
- return p->next != &pci_devices ? p->next : NULL;
+ return p->next != &pci_devices ? (void *)p->next : NULL;
 }
 static void pci_seq_stop(struct seq_file *m, void *v)
 {

-
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/



This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:26 EST