aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Liao <[email protected]>2024-09-09 15:56:52 +0800
committerPetr Mladek <[email protected]>2024-09-09 17:35:06 +0200
commit3e5b2e81f17f176a4d451c1dd1794e64644319c4 (patch)
tree333c51365fbf269718dc9451959eb6aec7426b28
parentbcc954c6caba01fca143162d5fbb90e46aa1ad80 (diff)
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 12c91cec3155 ("serial: core: Add serial_base_match_and_update_preferred_console()") Signed-off-by: Yu Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Mladek <[email protected]>
-rw-r--r--kernel/printk/printk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c22b07049c38..6ff8d47e145f 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);