* [PATCH 1/2] init/Kconfig: Hide printk log config if CONFIG_PRINTK=n
@ 2014-10-03 23:29 Josh Triplett
0 siblings, 0 replies; only message in thread
From: Josh Triplett @ 2014-10-03 23:29 UTC (permalink / raw)
To: Yann E. MORIN, Andrew Morton, Eric Paris, Michal Hocko,
Matt Turner, Paul Gortmaker, 蔡正龙, Tejun Heo,
Fabian Frederick, Luis R. Rodriguez, Peter Foley,
Konstantin Khlebnikov, Eric W. Biederman, H. Peter Anvin,
Oleg Nesterov, linux-kbuild, linux-kernel
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.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
Posting for review. I can upstream this through the tiny tree.
init/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/init/Kconfig b/init/Kconfig
index e84c642..31505a5 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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
--
2.1.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-03 23:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-03 23:29 [PATCH 1/2] init/Kconfig: Hide printk log config if CONFIG_PRINTK=n Josh Triplett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).