printk: Export match_devname_and_update_preferred_console()
authorYu Liao <liaoyu15@huawei.com>
Mon, 9 Sep 2024 07:56:52 +0000 (15:56 +0800)
committerPetr Mladek <pmladek@suse.com>
Mon, 9 Sep 2024 15:35:06 +0000 (17:35 +0200)
commit3e5b2e81f17f176a4d451c1dd1794e64644319c4
tree333c51365fbf269718dc9451959eb6aec7426b28
parentbcc954c6caba01fca143162d5fbb90e46aa1ad80
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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409071312.qlwtTOS1-lkp@intel.com/
Fixes: 12c91cec3155 ("serial: core: Add serial_base_match_and_update_preferred_console()")
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
Link: https://lore.kernel.org/r/20240909075652.747370-1-liaoyu15@huawei.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c