Re: [PATCH] [v2] printk: add dummy printk_force_console_enter/exit helpers

From: Petr Mladek
Date: Wed Nov 13 2024 - 05:30:44 EST


On Tue 2024-11-12 15:29:15, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The newly added interface is broken when PRINTK is disabled:
>
> drivers/tty/sysrq.c: In function '__handle_sysrq':
> drivers/tty/sysrq.c:601:9: error: implicit declaration of function 'printk_force_console_enter' [-Wimplicit-function-declaration]
> 601 | printk_force_console_enter();
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/tty/sysrq.c:611:25: error: implicit declaration of function 'printk_force_console_exit' [-Wimplicit-function-declaration]
> 611 | printk_force_console_exit();
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
>
> Add empty stub functions for both.
>
> Fixes: ed76c07c6885 ("printk: Introduce FORCE_CON flag")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Thanks a lot for the fix!

I have just pushed it into printk/linux.git,
branch for-6.13-force-console.

Best Regards,
Petr