[tip: sched/rt] printk: Export match_devname_and_update_preferred_console()

From: tip-bot2 for Yu Liao
Date: Mon Sep 09 2024 - 13:28:02 EST


The following commit has been merged into the sched/rt branch of tip:

Commit-ID: 3e5b2e81f17f176a4d451c1dd1794e64644319c4
Gitweb: https://git.kernel.org/tip/3e5b2e81f17f176a4d451c1dd1794e64644319c4
Author: Yu Liao <liaoyu15@xxxxxxxxxx>
AuthorDate: Mon, 09 Sep 2024 15:56:52 +08:00
Committer: Petr Mladek <pmladek@xxxxxxxx>
CommitterDate: Mon, 09 Sep 2024 17:35:06 +02:00

printk: Export match_devname_and_update_preferred_console()

When building serial_base as a module, modpost fails with the following
error message:

ERROR: modpost: "match_devname_and_update_preferred_console"
[drivers/tty/serial/serial_base.ko] undefined!

Export the symbol to allow using it from modules.

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202409071312.qlwtTOS1-lkp@xxxxxxxxx/
Fixes: 12c91cec3155 ("serial: core: Add serial_base_match_and_update_preferred_console()")
Signed-off-by: Yu Liao <liaoyu15@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20240909075652.747370-1-liaoyu15@xxxxxxxxxx
Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
---
kernel/printk/printk.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c22b070..6ff8d47 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2620,6 +2620,7 @@ int match_devname_and_update_preferred_console(const char *devname,

return -ENOENT;
}
+EXPORT_SYMBOL_GPL(match_devname_and_update_preferred_console);

bool console_suspend_enabled = true;
EXPORT_SYMBOL(console_suspend_enabled);