Commit 3e5b2e81 authored by Yu Liao's avatar Yu Liao Committed by Petr Mladek

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: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409071312.qlwtTOS1-lkp@intel.com/
Fixes: 12c91cec ("serial: core: Add serial_base_match_and_update_preferred_console()")
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Link: https://lore.kernel.org/r/20240909075652.747370-1-liaoyu15@huawei.comSigned-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent bcc954c6
...@@ -2620,6 +2620,7 @@ int match_devname_and_update_preferred_console(const char *devname, ...@@ -2620,6 +2620,7 @@ int match_devname_and_update_preferred_console(const char *devname,
return -ENOENT; return -ENOENT;
} }
EXPORT_SYMBOL_GPL(match_devname_and_update_preferred_console);
bool console_suspend_enabled = true; bool console_suspend_enabled = true;
EXPORT_SYMBOL(console_suspend_enabled); EXPORT_SYMBOL(console_suspend_enabled);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment