]> Gentwo Git Trees - linux/.git/commit
printk: nbcon: Consolidate alloc() and init()
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:29:28 +0000 (08:35 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 12:56:22 +0000 (14:56 +0200)
commitf37b105faef637cdaff334c0369b451410566ca0
treeb70aaafe73c0fec71a1e5b240135f2fb79e3ce8e
parenteda25860bf6e71932311f1b5acdf8fc05cd84ff3
printk: nbcon: Consolidate alloc() and init()

Rather than splitting the nbcon allocation and initialization into
two pieces, perform all initialization in nbcon_alloc(). Later,
the initial sequence is calculated and can be explicitly set using
nbcon_seq_force(). This removes the need for the strong rules of
nbcon_init() that even included a BUG_ON().

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