Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Randy Dunlap and committed by
Dinh Nguyen
adfc8f9d e4e737bb

+2 -1
+2 -1
arch/nios2/Kconfig.debug
··· 3 3 config EARLY_PRINTK 4 4 bool "Activate early kernel debugging" 5 5 default y 6 + depends on TTY 6 7 select SERIAL_CORE_CONSOLE 7 8 help 8 - Enable early printk on console 9 + Enable early printk on console. 9 10 This is useful for kernel debugging when your machine crashes very 10 11 early before the console code is initialized. 11 12 You should normally say N here, unless you want to debug such a crash.