]> git.hungrycats.org Git - linux/commitdiff
Fix pci config syscall definitions.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 17:16:19 +0000 (10:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 17:16:19 +0000 (10:16 -0700)
Including the proper header file showed that they didn't
match the declared prototypes.

drivers/pci/syscall.c

index 913a1e44652ac1a6f60e5a1238ecf2c4c1b16d8e..c071790cc9830da6e53a56d022010b05cd18c3be 100644 (file)
@@ -17,7 +17,8 @@
 
 asmlinkage long
 sys_pciconfig_read(unsigned long bus, unsigned long dfn,
-                  unsigned long off, unsigned long len, void *buf)
+                  unsigned long off, unsigned long len,
+                  void __user *buf)
 {
        struct pci_dev *dev;
        u8 byte;
@@ -89,7 +90,8 @@ error:
 
 asmlinkage long
 sys_pciconfig_write(unsigned long bus, unsigned long dfn,
-                   unsigned long off, unsigned long len, void *buf)
+                   unsigned long off, unsigned long len,
+                   void __user *buf)
 {
        struct pci_dev *dev;
        u8 byte;