diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-03-13 03:25:58 -0800 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2004-03-13 03:25:58 -0800 |
| commit | d1dbcdee71f00e0e4c4422d678ea4d4ced30212a (patch) | |
| tree | a76a2f8cab41669ac6a741235b13acd9c1f80cfe /arch | |
| parent | 214b914e1efb03b22cc5009a6f5d78f8df91686c (diff) | |
[PATCH] further __KERNEL_SYSCALLS__ removal
From: Arnd Bergmann <arnd@arndb.de>
Dave Jones already removed some of the useless __KERNEL_SYSCALLS__ defines
in various files, this gets rid of almost all the others. Replacing
execve() is nontrivial, so I left those in for now.
For all the other system calls that are currently used from inside the
kernel, calling the sys_* function directly should always have an identical
effect.
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/alpha/kernel/alpha_ksyms.c | 3 | ||||
| -rw-r--r-- | arch/alpha/kernel/smp.c | 3 | ||||
| -rw-r--r-- | arch/cris/kernel/process.c | 2 | ||||
| -rw-r--r-- | arch/parisc/kernel/process.c | 1 | ||||
| -rw-r--r-- | arch/parisc/kernel/smp.c | 1 | ||||
| -rw-r--r-- | arch/ppc/kernel/misc.S | 10 | ||||
| -rw-r--r-- | arch/ppc/kernel/ppc_ksyms.c | 6 | ||||
| -rw-r--r-- | arch/ppc/kernel/smp.c | 2 | ||||
| -rw-r--r-- | arch/ppc/platforms/chrp_smp.c | 2 | ||||
| -rw-r--r-- | arch/ppc/platforms/pmac_smp.c | 2 | ||||
| -rw-r--r-- | arch/ppc64/kernel/pmac_smp.c | 2 | ||||
| -rw-r--r-- | arch/sparc/kernel/process.c | 2 | ||||
| -rw-r--r-- | arch/sparc/kernel/smp.c | 3 | ||||
| -rw-r--r-- | arch/sparc/kernel/sun4d_smp.c | 3 | ||||
| -rw-r--r-- | arch/sparc/kernel/sun4m_smp.c | 3 | ||||
| -rw-r--r-- | arch/sparc64/kernel/process.c | 3 | ||||
| -rw-r--r-- | arch/sparc64/kernel/smp.c | 3 | ||||
| -rw-r--r-- | arch/x86_64/kernel/process.c | 2 |
18 files changed, 1 insertions, 52 deletions
diff --git a/arch/alpha/kernel/alpha_ksyms.c b/arch/alpha/kernel/alpha_ksyms.c index c901914a393d..598fbcd6da10 100644 --- a/arch/alpha/kernel/alpha_ksyms.c +++ b/arch/alpha/kernel/alpha_ksyms.c @@ -35,9 +35,6 @@ #include <asm/cacheflush.h> #include <asm/vga.h> -#define __KERNEL_SYSCALLS__ -#include <asm/unistd.h> - extern struct hwrpb_struct *hwrpb; extern void dump_thread(struct pt_regs *, struct user *); extern spinlock_t rtc_lock; diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index dafc4ca4e324..9f06d31f3da3 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c @@ -39,9 +39,6 @@ #include <asm/mmu_context.h> #include <asm/tlbflush.h> -#define __KERNEL_SYSCALLS__ -#include <asm/unistd.h> - #include "proto.h" #include "irq_impl.h" diff --git a/arch/cris/kernel/process.c b/arch/cris/kernel/process.c index 3db645340bf6..cbb0bad22607 100644 --- a/arch/cris/kernel/process.c +++ b/arch/cris/kernel/process.c @@ -91,8 +91,6 @@ * This file handles the architecture-dependent parts of process handling.. */ -#define __KERNEL_SYSCALLS__ - #include <asm/atomic.h> #include <asm/pgtable.h> #include <asm/uaccess.h> diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index 447795e33eb8..057b549368be 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -32,7 +32,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define __KERNEL_SYSCALLS__ #include <stdarg.h> #include <linux/elf.h> diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index 4e30cf5a760e..c5185a93b870 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -16,7 +16,6 @@ ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. */ -#define __KERNEL_SYSCALLS__ #undef ENTRY_SYS_CPUS /* syscall support for iCOD-like functionality */ #include <linux/autoconf.h> diff --git a/arch/ppc/kernel/misc.S b/arch/ppc/kernel/misc.S index be626a03006a..9d9023e0ff77 100644 --- a/arch/ppc/kernel/misc.S +++ b/arch/ppc/kernel/misc.S @@ -1108,17 +1108,7 @@ _GLOBAL(name) \ li r3,-1; \ blr -#define __NR__exit __NR_exit - -SYSCALL(setsid) -SYSCALL(open) -SYSCALL(read) -SYSCALL(write) -SYSCALL(lseek) -SYSCALL(close) -SYSCALL(dup) SYSCALL(execve) -SYSCALL(waitpid) /* Why isn't this a) automatic, b) written in 'C'? */ .data diff --git a/arch/ppc/kernel/ppc_ksyms.c b/arch/ppc/kernel/ppc_ksyms.c index ab5b941eaacb..b82eca885b2f 100644 --- a/arch/ppc/kernel/ppc_ksyms.c +++ b/arch/ppc/kernel/ppc_ksyms.c @@ -32,8 +32,6 @@ #include <linux/pmu.h> #include <asm/prom.h> #include <asm/system.h> -#define __KERNEL_SYSCALLS__ -#include <asm/unistd.h> #include <asm/pci-bridge.h> #include <asm/irq.h> #include <asm/pmac_feature.h> @@ -189,10 +187,6 @@ EXPORT_SYMBOL(consistent_sync); EXPORT_SYMBOL(flush_dcache_all); #endif -EXPORT_SYMBOL(open); -EXPORT_SYMBOL(read); -EXPORT_SYMBOL(lseek); -EXPORT_SYMBOL(close); EXPORT_SYMBOL(start_thread); EXPORT_SYMBOL(kernel_thread); diff --git a/arch/ppc/kernel/smp.c b/arch/ppc/kernel/smp.c index ee5a554565d7..5805707ed267 100644 --- a/arch/ppc/kernel/smp.c +++ b/arch/ppc/kernel/smp.c @@ -17,8 +17,6 @@ #include <linux/interrupt.h> #include <linux/kernel_stat.h> #include <linux/delay.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/cache.h> diff --git a/arch/ppc/platforms/chrp_smp.c b/arch/ppc/platforms/chrp_smp.c index a776b83bf8da..71f62a05565b 100644 --- a/arch/ppc/platforms/chrp_smp.c +++ b/arch/ppc/platforms/chrp_smp.c @@ -16,8 +16,6 @@ #include <linux/interrupt.h> #include <linux/kernel_stat.h> #include <linux/delay.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> #include <linux/init.h> #include <linux/spinlock.h> diff --git a/arch/ppc/platforms/pmac_smp.c b/arch/ppc/platforms/pmac_smp.c index 7bac32b40c8e..ff80725cb760 100644 --- a/arch/ppc/platforms/pmac_smp.c +++ b/arch/ppc/platforms/pmac_smp.c @@ -29,8 +29,6 @@ #include <linux/interrupt.h> #include <linux/kernel_stat.h> #include <linux/delay.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/errno.h> diff --git a/arch/ppc64/kernel/pmac_smp.c b/arch/ppc64/kernel/pmac_smp.c index 7bf8ce2616e1..a96cbbb80dd2 100644 --- a/arch/ppc64/kernel/pmac_smp.c +++ b/arch/ppc64/kernel/pmac_smp.c @@ -29,8 +29,6 @@ #include <linux/interrupt.h> #include <linux/kernel_stat.h> #include <linux/delay.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/errno.h> diff --git a/arch/sparc/kernel/process.c b/arch/sparc/kernel/process.c index 867c2f25f750..7a463e3b8df1 100644 --- a/arch/sparc/kernel/process.c +++ b/arch/sparc/kernel/process.c @@ -9,7 +9,6 @@ * This file handles the architecture-dependent parts of process handling.. */ -#define __KERNEL_SYSCALLS__ #include <stdarg.h> #include <linux/errno.h> @@ -19,7 +18,6 @@ #include <linux/kallsyms.h> #include <linux/mm.h> #include <linux/stddef.h> -#include <linux/unistd.h> #include <linux/ptrace.h> #include <linux/slab.h> #include <linux/user.h> diff --git a/arch/sparc/kernel/smp.c b/arch/sparc/kernel/smp.c index f8ed7e906096..c8e3db85cca1 100644 --- a/arch/sparc/kernel/smp.c +++ b/arch/sparc/kernel/smp.c @@ -33,9 +33,6 @@ #include <asm/cacheflush.h> #include <asm/tlbflush.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> - #define IRQ_RESCHEDULE 13 #define IRQ_STOP_CPU 14 #define IRQ_CROSS_CALL 15 diff --git a/arch/sparc/kernel/sun4d_smp.c b/arch/sparc/kernel/sun4d_smp.c index 7b4170081f5c..bf87cb46cb5a 100644 --- a/arch/sparc/kernel/sun4d_smp.c +++ b/arch/sparc/kernel/sun4d_smp.c @@ -32,9 +32,6 @@ #include <asm/sbus.h> #include <asm/sbi.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> - #define IRQ_CROSS_CALL 15 extern ctxd_t *srmmu_ctx_table_phys; diff --git a/arch/sparc/kernel/sun4m_smp.c b/arch/sparc/kernel/sun4m_smp.c index a0432f504bd3..1c805ab78011 100644 --- a/arch/sparc/kernel/sun4m_smp.c +++ b/arch/sparc/kernel/sun4m_smp.c @@ -27,9 +27,6 @@ #include <asm/oplib.h> #include <asm/hardirq.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> - #define IRQ_RESCHEDULE 13 #define IRQ_STOP_CPU 14 #define IRQ_CROSS_CALL 15 diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index 2119eefc2d83..1be2b97e4672 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c @@ -10,7 +10,6 @@ * This file handles the architecture-dependent parts of process handling.. */ -#define __KERNEL_SYSCALLS__ #include <stdarg.h> #include <linux/errno.h> @@ -22,7 +21,6 @@ #include <linux/smp.h> #include <linux/smp_lock.h> #include <linux/stddef.h> -#include <linux/unistd.h> #include <linux/ptrace.h> #include <linux/slab.h> #include <linux/user.h> @@ -43,6 +41,7 @@ #include <asm/fpumacro.h> #include <asm/head.h> #include <asm/cpudata.h> +#include <asm/unistd.h> /* #define VERBOSE_SHOWREGS */ diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index 2e8b578e8459..ce479585c484 100644 --- a/arch/sparc64/kernel/smp.c +++ b/arch/sparc64/kernel/smp.c @@ -36,9 +36,6 @@ #include <asm/timer.h> #include <asm/starfire.h> -#define __KERNEL_SYSCALLS__ -#include <linux/unistd.h> - extern int linux_num_cpus; extern void calibrate_delay(void); diff --git a/arch/x86_64/kernel/process.c b/arch/x86_64/kernel/process.c index 60fd84d11d8e..52dc60ab31ee 100644 --- a/arch/x86_64/kernel/process.c +++ b/arch/x86_64/kernel/process.c @@ -16,7 +16,6 @@ * This file handles the architecture-dependent parts of process handling.. */ -#define __KERNEL_SYSCALLS__ #include <stdarg.h> #include <linux/errno.h> @@ -25,7 +24,6 @@ #include <linux/mm.h> #include <linux/elfcore.h> #include <linux/smp.h> -#include <linux/unistd.h> #include <linux/slab.h> #include <linux/user.h> #include <linux/module.h> |
