printk: Make static printk buffers available to nbcon
authorJohn Ogness <john.ogness@linutronix.de>
Sat, 16 Sep 2023 19:20:02 +0000 (21:26 +0206)
committerPetr Mladek <pmladek@suse.com>
Mon, 18 Sep 2023 15:03:45 +0000 (17:03 +0200)
commitd818b56f77521ecc5e3eda71dc9b2beb3d6681e3
tree64492b1c3c306925ba5bf2e6d5cf0cecc230f824
parent3a5bb25162b880da749f7cdf281c78dbade4164b
printk: Make static printk buffers available to nbcon

The nbcon boot consoles also need printk buffers that are available
very early. Since the nbcon boot consoles will also be serialized
by the console_lock, they can use the same static printk buffers
that the legacy consoles are using.

Make the legacy static printk buffers available outside of printk.c
so they can be used by nbcon.c.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230916192007.608398-4-john.ogness@linutronix.de
kernel/printk/internal.h
kernel/printk/printk.c