]> www.infradead.org Git - users/dwmw2/linux.git/commit
printk: nbcon: Do not rely on proxy headers
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:29:41 +0000 (08:35 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 12:56:23 +0000 (14:56 +0200)
commit1c17ebb7907a809a92f978995c27a53ead2526ee
treea96735cf895649800d803c6dfa9d6958a8f9312b
parent4126f149c48b2ae757d11ea24675f7071ab22ebf
printk: nbcon: Do not rely on proxy headers

The headers kernel.h, serial_core.h, and console.h allow for the
definitions of many types and functions from other headers.
Rather than relying on these as proxy headers, explicitly
include all headers providing needed definitions. Also sort the
list alphabetically to be able to easily detect duplicates.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240820063001.36405-16-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/internal.h
kernel/printk/nbcon.c
kernel/printk/printk_ringbuffer.h