From a4946826c30c56a5830326552a395c5b6afc13ef Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 18 Oct 2004 10:16:19 -0700 Subject: [PATCH] Fix pci config syscall definitions. Including the proper header file showed that they didn't match the declared prototypes. --- drivers/pci/syscall.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pci/syscall.c b/drivers/pci/syscall.c index 913a1e44652ac..c071790cc9830 100644 --- a/drivers/pci/syscall.c +++ b/drivers/pci/syscall.c @@ -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; -- 2.53.0