Skip to content

Commit 3e5b2e8

Browse files
yuliao0214pmladek
authored andcommitted
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: 12c91ce ("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]>
1 parent bcc954c commit 3e5b2e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/printk/printk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,6 +2620,7 @@ int match_devname_and_update_preferred_console(const char *devname,
26202620

26212621
return -ENOENT;
26222622
}
2623+
EXPORT_SYMBOL_GPL(match_devname_and_update_preferred_console);
26232624

26242625
bool console_suspend_enabled = true;
26252626
EXPORT_SYMBOL(console_suspend_enabled);

0 commit comments

Comments
 (0)