瀏覽代碼

Merge tag 'tiny/kconfig-for-3.17' of https://git.kernel.org/pub/scm/linux/kernel/git/josh/linux

Pull kconfig fixes for tiny setups from Josh Triplett:
 "Two Kconfig bugfixes for 3.17 related to tinification.  These fixes
  make the Kconfig "General Setup" menu much more usable"

* tag 'tiny/kconfig-for-3.17' of https://git.kernel.org/pub/scm/linux/kernel/git/josh/linux:
  init/Kconfig: Fix HAVE_FUTEX_CMPXCHG to not break up the EXPERT menu
  init/Kconfig: Hide printk log config if CONFIG_PRINTK=n
Linus Torvalds 11 年之前
父節點
當前提交
7b6ea43d3f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      init/Kconfig

+ 3 - 0
init/Kconfig

@@ -811,6 +811,7 @@ config LOG_BUF_SHIFT
 	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
 	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
 	range 12 21
 	range 12 21
 	default 17
 	default 17
+	depends on PRINTK
 	help
 	help
 	  Select the minimal kernel log buffer size as a power of 2.
 	  Select the minimal kernel log buffer size as a power of 2.
 	  The final size is affected by LOG_CPU_MAX_BUF_SHIFT config
 	  The final size is affected by LOG_CPU_MAX_BUF_SHIFT config
@@ -830,6 +831,7 @@ config LOG_CPU_MAX_BUF_SHIFT
 	range 0 21
 	range 0 21
 	default 12 if !BASE_SMALL
 	default 12 if !BASE_SMALL
 	default 0 if BASE_SMALL
 	default 0 if BASE_SMALL
+	depends on PRINTK
 	help
 	help
 	  This option allows to increase the default ring buffer size
 	  This option allows to increase the default ring buffer size
 	  according to the number of CPUs. The value defines the contribution
 	  according to the number of CPUs. The value defines the contribution
@@ -1475,6 +1477,7 @@ config FUTEX
 
 
 config HAVE_FUTEX_CMPXCHG
 config HAVE_FUTEX_CMPXCHG
 	bool
 	bool
+	depends on FUTEX
 	help
 	help
 	  Architectures should select this if futex_atomic_cmpxchg_inatomic()
 	  Architectures should select this if futex_atomic_cmpxchg_inatomic()
 	  is implemented and always working. This removes a couple of runtime
 	  is implemented and always working. This removes a couple of runtime