On Mon 2025-08-11 10:32:45, Marcos Paulo de Souza wrote: > The helper will be used on KDB code in the next commits. > > Signed-off-by: Marcos Paulo de Souza <mpdeso...@suse.com> > --- > include/linux/console.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ > kernel/printk/internal.h | 41 ----------------------------------------- > 2 files changed, 44 insertions(+), 41 deletions(-) > > diff --git a/include/linux/console.h b/include/linux/console.h > index > 8f10d0a85bb4536e4b0dda4e8ccbdf87978bbb4a..67af483574727c00eea1d5a1eacc994755c92607 > 100644 > --- a/include/linux/console.h > +++ b/include/linux/console.h > @@ -612,6 +654,8 @@ static inline bool nbcon_can_proceed(struct > nbcon_write_context *wctxt) { return > static inline bool nbcon_enter_unsafe(struct nbcon_write_context *wctxt) { > return false; } > static inline bool nbcon_exit_unsafe(struct nbcon_write_context *wctxt) { > return false; } > static inline void nbcon_reacquire_nobuf(struct nbcon_write_context *wctxt) > { } > +static inline bool console_is_usable(struct console *con, short flags, > + bool use_atomic) { return false; }
The patch should also remove the duplicated definition in kernel/printk/internal.h. > #endif > > extern int console_set_on_cmdline; Otherwise, it looks good. Best Regards, Petr _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport