Skip to contentSkip to conversation

NIOS2: fix kconfig unmet dependency warning for SERIAL_CORE_CONSOLE

PATCH Applied Randy Dunlap 2 participants 2 messages Sep 24, 2021 NIOS2 architecture

v2 of 3 Applied Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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")
Cc Dinh Nguyen <[email protected]>

---
v2: resend to new maintainer

 arch/nios2/Kconfig.debug |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/nios2/Kconfig.debug +2 -1
@@ -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.
maintainer Applied
#1 lore raw
Quoted 9 lines · Randy Dunlap

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]

Quoted 5 lines
Fixes e8bf5bc776ed ("nios2: add early printk support")
Cc Dinh Nguyen <[email protected]>

---
v2: resend to new maintainer

Applied!

Thanks,
Dinh