Skip to contentSkip to conversation

init/Kconfig: Hide printk log config if CONFIG_PRINTK=n

PATCH In review Josh Triplett 1 participant 1 message Oct 3, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 init/Kconfig: Hide printk log config if CONFIG_PRINTK=n

The buffers sized by CONFIG_LOG_BUF_SHIFT and CONFIG_LOG_CPU_MAX_BUF_SHIFT do not exist if CONFIG_PRINTK=n, so don't ask about their size at all.

---

Posting for review. I can upstream this through the tiny tree.

 init/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
init/Kconfig +2 -0
index e84c642..31505a5 100644
@@ -811,6 +811,7 @@ config LOG_BUF_SHIFT
 	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
 	range 12 21
 	default 17
+	depends on PRINTK
 	help
 	  Select the minimal kernel log buffer size as a power of 2.
 	  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
 	default 12 if !BASE_SMALL
 	default 0 if BASE_SMALL
+	depends on PRINTK
 	help
 	  This option allows to increase the default ring buffer size
 	  according to the number of CPUs. The value defines the contribution
Signature · 1 line
2.1.1