mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
d142585bce
If CONFIG_CONSOLE_POLL=y, and CONFIG_SERIAL_CPM=m (hence
CONFIG_SERIAL_CPM_CONSOLE=n):
drivers/tty/serial/cpm_uart/cpm_uart_core.c:1109:12: warning: ‘udbg_cpm_getc’ defined but not used [-Wunused-function]
1109 | static int udbg_cpm_getc(void)
| ^~~~~~~~~~~~~
drivers/tty/serial/cpm_uart/cpm_uart_core.c:1095:13: warning: ‘udbg_cpm_putc’ defined but not used [-Wunused-function]
1095 | static void udbg_cpm_putc(char c)
| ^~~~~~~~~~~~~
Fix this by making the udbg definitions depend on
CONFIG_SERIAL_CPM_CONSOLE, in addition to CONFIG_CONSOLE_POLL.
Fixes:
|
||
---|---|---|
.. | ||
cpm_uart_core.c | ||
cpm_uart_cpm1.c | ||
cpm_uart_cpm1.h | ||
cpm_uart_cpm2.c | ||
cpm_uart_cpm2.h | ||
cpm_uart.h | ||
Makefile |