From abcb2f165501ff80e738748a29625b71fe7e6293 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Sat, 2 Nov 2002 18:45:55 -0800 Subject: [PATCH] make swap code conditional Make the swap code conditional on CONFIG_SWAP. This is mostly for uClinux, but !CONFIG_SWAP compiles and boots fine for i386, too - the only problem I've seen is that X doesn't starts, it's probably shm-related, thus it's disabled unconditionally for "normal" arches. The patch makes three files in mm/ conditional on CONFIG_SWAP, reorganzies include/linux/swap.h big time to provide stubs for the !CONFIG_SWAP case, moves the remaining /proc/swaps code to swapfile.c and cleans up some more MM code to compile fine without CONFIG_SWAP --- kernel/sys.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/sys.c') diff --git a/kernel/sys.c b/kernel/sys.c index 3c2992ac68f2..22c1c93ec6da 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -204,6 +204,8 @@ cond_syscall(sys_nfsservctl) cond_syscall(sys_quotactl) cond_syscall(sys_acct) cond_syscall(sys_lookup_dcookie) +cond_syscall(sys_swapon) +cond_syscall(sys_swapoff) static int set_one_prio(struct task_struct *p, int niceval, int error) { -- cgit v1.2.3