Эх сурвалжийг харах

Move sysctl check into debugging section and don't make it default y

I noticed that sysctl_check.o was the largest object file in
a allnoconfig build in kernel/*.

  36243       0       0   36243    8d93 kernel/sysctl_check.o

This is because it was default y and && EMBEDDED. But I don't
really see a need for a non kernel developer to have their
sysctls checked all the time.

So move the Kconfig into the kernel debugging section and
also drop the default y and the EMBEDDED check.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Andi Kleen 16 жил өмнө
parent
commit
9e94cd325b
2 өөрчлөгдсөн 8 нэмэгдсэн , 11 устгасан
  1. 0 11
      init/Kconfig
  2. 8 0
      lib/Kconfig.debug

+ 0 - 11
init/Kconfig

@@ -558,17 +558,6 @@ config SYSCTL_SYSCALL
 
 
 	  If unsure say Y here.
 	  If unsure say Y here.
 
 
-config SYSCTL_SYSCALL_CHECK
-	bool "Sysctl checks" if EMBEDDED
-	depends on SYSCTL_SYSCALL
-	default y
-	---help---
-	  sys_sysctl uses binary paths that have been found challenging
-	  to properly maintain and use. This enables checks that help
-	  you to keep things correct.
-
-	  If unsure say Y here.
-
 config KALLSYMS
 config KALLSYMS
 	 bool "Load all symbols for debugging/ksymoops" if EMBEDDED
 	 bool "Load all symbols for debugging/ksymoops" if EMBEDDED
 	 default y
 	 default y

+ 8 - 0
lib/Kconfig.debug

@@ -693,6 +693,14 @@ config LATENCYTOP
 	  Enable this option if you want to use the LatencyTOP tool
 	  Enable this option if you want to use the LatencyTOP tool
 	  to find out which userspace is blocking on what kernel operations.
 	  to find out which userspace is blocking on what kernel operations.
 
 
+config SYSCTL_SYSCALL_CHECK
+	bool "Sysctl checks"
+	depends on SYSCTL_SYSCALL
+	---help---
+	  sys_sysctl uses binary paths that have been found challenging
+	  to properly maintain and use. This enables checks that help
+	  you to keep things correct.
+
 source kernel/trace/Kconfig
 source kernel/trace/Kconfig
 
 
 config PROVIDE_OHCI1394_DMA_INIT
 config PROVIDE_OHCI1394_DMA_INIT