Skip to content

Commit 19ac50f

Browse files
geertugregkh
authored andcommitted
tty: serial: sh-sci: Add default for number of ports for compile-testing
When compile-testing an allmodconfig kernel for a platform without sh-sci serial ports, the SERIAL_SH_SCI_NR_UARTS symbol of type "int" doesn't get assigned a numerical default value, but an empty string, leading to a build failure: .config:3814:warning: symbol value '' invalid for SERIAL_SH_SCI_NR_UARTS ... make[3]: *** [silentoldconfig] Error 1 Fix this by explicitly providing a default value of 2, like before. Reported-by: kbuild test robot <[email protected]> Fixes: f673148 ("tty: serial: sh-sci: Hide number of ports config question") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 38d5583 commit 19ac50f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ config SERIAL_SH_SCI_NR_UARTS
766766
default "3" if H8300
767767
default "10" if SUPERH
768768
default "18" if ARCH_RENESAS
769+
default "2"
769770

770771
config SERIAL_SH_SCI_CONSOLE
771772
bool "Support for console on SuperH SCI(F)" if EXPERT

0 commit comments

Comments
 (0)