]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 1 Jul 2023 05:47:12 +0000 (22:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:23 +0000 (08:37 +0200)
[ Upstream commit 39f49684036d24af800ff194c33c7b2653c591d7 ]

In a randconfig with CONFIG_SERIAL_CPM=m and
CONFIG_PPC_EARLY_DEBUG_CPM=y, there is a build error:
ERROR: modpost: "udbg_putc" [drivers/tty/serial/cpm_uart/cpm_uart.ko] undefined!

Prevent the build error by allowing PPC_EARLY_DEBUG_CPM only when
SERIAL_CPM=y.

Fixes: c374e00e17f1 ("[POWERPC] Add early debug console for CPM serial ports.")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230701054714.30512-1-rdunlap@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/Kconfig.debug

index 2ca9114fcf0029e6f32865a7f621b0db16de2f22..0c8436b06c49409f5aa83b76c052cf307df7cf29 100644 (file)
@@ -234,7 +234,7 @@ config PPC_EARLY_DEBUG_40x
 
 config PPC_EARLY_DEBUG_CPM
        bool "Early serial debugging for Freescale CPM-based serial ports"
-       depends on SERIAL_CPM
+       depends on SERIAL_CPM=y
        help
          Select this to enable early debugging for Freescale chips
          using a CPM-based serial port.  This assumes that the bootwrapper