aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2021-10-27 07:53:26 +0000
committerGreg Kroah-Hartman <[email protected]>2021-10-30 09:01:48 +0000
commitd142585bceb3218ad432ed0fcd5be9d6e3cd9052 (patch)
tree759eaff0c8e9d751cd8018313f992b1cade0aa2b /fs/ext4/fast_commit.c
parenttty: rpmsg: Define tty name via constant string literal (diff)
downloadkernel-d142585bceb3218ad432ed0fcd5be9d6e3cd9052.tar.gz
kernel-d142585bceb3218ad432ed0fcd5be9d6e3cd9052.zip
serial: cpm_uart: Protect udbg definitions by CONFIG_SERIAL_CPM_CONSOLE
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: a60526097f42eb98 ("tty: serial: cpm_uart: Add udbg support for enabling xmon") Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions