Skip to contentSkip to conversation

powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y

PATCH Applied Randy Dunlap 3 participants 3 messages Jul 1, 2023 – Jul 3, 2023 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y

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.")
Cc Kumar Gala <[email protected]>
Cc "Pali Rohár" <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Christophe Leroy <[email protected]>

---
v2: add Pali's R-b;
drop Scott Wood from Cc: list

 arch/powerpc/Kconfig.debug |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Kconfig.debug +1 -1
diff -- a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
@@ -240,7 +240,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
Reviewed-by on v2 1/1
#1 lore raw

Le 01/07/2023 à 07:47, Randy Dunlap a écrit :

Quoted 7 lines

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.

Quoted 9 lines
Fixes c374e00e17f1 ("[POWERPC] Add early debug console for CPM serial ports.")
Cc Kumar Gala <[email protected]>
Cc "Pali Rohár" <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Christophe Leroy <[email protected]>
Quoted 19 lines

---
v2: add Pali's R-b;
drop Scott Wood from Cc: list

  arch/powerpc/Kconfig.debug |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff -- a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug

arch/powerpc/Kconfig.debug +1 -1
@@ -240,7 +240,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
reviewer Applied
#2 lore raw
In reply to Randy Dunlap
Quoted 8 lines · Randy Dunlap

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.

[...]

Applied to powerpc/next.

[1/1] powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y

      https://git.kernel.org/powerpc/c/39f49684036d24af800ff194c33c7b2653c591d7

cheers