summaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2021-09-24 03:29:39 +0300
committerDinh Nguyen <dinguyen@kernel.org>2021-09-24 16:49:39 +0300
commitadfc8f9d2f9fefd880abc82cfbf62cbfe6539c97 (patch)
tree7ac526face03f598ba6290142a827df8bd511f13 /arch/nios2
parente4e737bb5c170df6135a127739a9e6148ee3da82 (diff)
downloadlinux-adfc8f9d2f9fefd880abc82cfbf62cbfe6539c97.tar.xz
NIOS2: fix kconfig unmet dependency warning for SERIAL_CORE_CONSOLE
SERIAL_CORE_CONSOLE depends on TTY so EARLY_PRINTK should also depend on TTY so that it does not select SERIAL_CORE_CONSOLE inadvertently. WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE Depends on [n]: TTY [=n] && HAS_IOMEM [=y] Selected by [y]: - EARLY_PRINTK [=y] Fixes: e8bf5bc776ed ("nios2: add early printk support") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/Kconfig.debug3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/nios2/Kconfig.debug b/arch/nios2/Kconfig.debug
index a8bc06e96ef5..ca1beb87f987 100644
--- a/arch/nios2/Kconfig.debug
+++ b/arch/nios2/Kconfig.debug
@@ -3,9 +3,10 @@
config EARLY_PRINTK
bool "Activate early kernel debugging"
default y
+ depends on TTY
select SERIAL_CORE_CONSOLE
help
- Enable early printk on console
+ Enable early printk on console.
This is useful for kernel debugging when your machine crashes very
early before the console code is initialized.
You should normally say N here, unless you want to debug such a crash.