]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:20:01 +0000 (17:20 +0200)
commitba92d97da8e11facee0604366cc766fc0e04e3c0
tree98096f69442b09d9d72f7c8d4637061b7754cffa
parent00bb15f50105d3282b93e1935fa405bc1095d540
powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y

BugLink: https://bugs.launchpad.net/bugs/2034469
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/powerpc/Kconfig.debug