]> git.baikalelectronics.ru Git - kernel.git/commit
serial: cpm_uart: Fix build error without CONFIG_SERIAL_CPM_CONSOLE
authorYueHaibing <yuehaibing@huawei.com>
Wed, 18 May 2022 13:54:52 +0000 (21:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:31:58 +0000 (18:31 +0200)
commitd6416ba04cb7f084c546516d8758a295ffb1766a
tree0af738076eb04d1442c055e22586c07dc34e58fe
parent863470c9885fa7d55e82cba55f1335c9332650b5
serial: cpm_uart: Fix build error without CONFIG_SERIAL_CPM_CONSOLE

drivers/tty/serial/cpm_uart/cpm_uart_core.c: In function ‘cpm_uart_init_port’:
drivers/tty/serial/cpm_uart/cpm_uart_core.c:1251:7: error: ‘udbg_port’ undeclared (first use in this function); did you mean ‘uart_port’?
  if (!udbg_port)
       ^~~~~~~~~
       uart_port

commit 1776642eebb3 leave this corner, wrap it with #ifdef block

Fixes: 1776642eebb3 ("serial: cpm_uart: Protect udbg definitions by CONFIG_SERIAL_CPM_CONSOLE")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20220518135452.39480-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/cpm_uart/cpm_uart_core.c