vserver 1.9.5.x5
[linux-2.6.git] / drivers / pci / syscall.c
index e965464..c071790 100644 (file)
 #include <linux/errno.h>
 #include <linux/pci.h>
 #include <linux/smp_lock.h>
+#include <linux/syscalls.h>
 #include <asm/uaccess.h>
 
 
 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;
@@ -88,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;