Skip to contentSkip to conversation

i386/x86_64: sys_ioperm() prototype cleanup

PATCH New Adrian Bunk 1 participant 1 message Mar 28, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/x86_64: sys_ioperm() prototype cleanup

- there's no reason for duplicating the prototype from include/linux/syscalls.h in include/asm-x86_64/unistd.h
- every file should #include the headers containing the prototypes for it's global functions

---

 arch/i386/kernel/ioport.c   |    1 +
 arch/x86_64/kernel/ioport.c |    1 +
 include/asm-x86_64/unistd.h |    1 -
 3 files changed, 2 insertions(+), 1 deletion(-)
include/asm-x86_64/unistd.h renamed from include/asm-x86_64/unistd.h.old +0 -1
@@ -655,7 +655,6 @@
 #include <asm/ptrace.h>
 
 asmlinkage long sys_iopl(unsigned int level, struct pt_regs *regs);
-asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int turn_on);
 struct sigaction;
 asmlinkage long sys_rt_sigaction(int sig,
 				const struct sigaction __user *act,
arch/i386/kernel/ioport.c renamed from arch/i386/kernel/ioport.c.old +1 -0
@@ -16,6 +16,7 @@
 #include <linux/stddef.h>
 #include <linux/slab.h>
 #include <linux/thread_info.h>
+#include <linux/syscalls.h>
 
 /* Set EXTENT bits starting at BASE in BITMAP to value TURN_ON. */
 static void set_bitmap(unsigned long *bitmap, unsigned int base, unsigned int extent, int new_value)
arch/x86_64/kernel/ioport.c renamed from arch/x86_64/kernel/ioport.c.old +1 -0
@@ -16,6 +16,7 @@
 #include <linux/stddef.h>
 #include <linux/slab.h>
 #include <linux/thread_info.h>
+#include <linux/syscalls.h>
 
 /* Set EXTENT bits starting at BASE in BITMAP to value TURN_ON. */
 static void set_bitmap(unsigned long *bitmap, unsigned int base, unsigned int extent, int new_value)