Re: [PATCH -next] printk: Export match_devname_and_update_preferred_console()

From: Petr Mladek
Date: Mon Sep 09 2024 - 12:07:01 EST


On Mon 2024-09-09 15:56:52, Yu Liao wrote:
> 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>

It looks good. I have pushed the fix into printk/linux.git,
branch for-6.11-fixup. I am going to send a pull request
later this week.

Best Regards,
Petr