patch-2.3.23 linux/arch/arm/kernel/ioport.c

Next file: linux/arch/arm/kernel/irq.c
Previous file: linux/arch/arm/kernel/init_task.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/arch/arm/kernel/ioport.c linux/arch/arm/kernel/ioport.c
@@ -9,10 +9,12 @@
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/ioport.h>
+#include <linux/mm.h>
 
 #include <asm/pgtable.h>
 #include <asm/uaccess.h>
 
+#ifdef CONFIG_CPU_32
 asmlinkage int sys_iopl(unsigned long turn_on)
 {
 	if (turn_on && !capable(CAP_SYS_RAWIO))
@@ -25,3 +27,9 @@
 
 	return 0;
 }
+#else
+asmlinkage int sys_iopl(unsigned long turn_on)
+{
+	return -ENOSYS;
+}
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)