sysctl: Don't compile sysctl_check when !CONFIG_SYSCTL
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 20 Oct 2007 00:23:25 +0000 (18:23 -0600)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 20 Oct 2007 01:04:22 +0000 (18:04 -0700)
Weird I thought I had written the makefile so this would be handled.  Oh
well this should fix it.

Sorry about that.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-and-tested-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/Makefile

index 05c3e6df85973e44bba5127c0805a7fc64a7240e..79f017e09fbdf89cbcad81a07fd00c80fd8a8182 100644 (file)
@@ -9,8 +9,9 @@ obj-y     = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
            rcupdate.o extable.o params.o posix-timers.o \
            kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
            hrtimer.o rwsem.o latency.o nsproxy.o srcu.o \
-           utsname.o sysctl_check.o notifier.o
+           utsname.o notifier.o
 
+obj-$(CONFIG_SYSCTL) += sysctl_check.o
 obj-$(CONFIG_STACKTRACE) += stacktrace.o
 obj-y += time/
 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o