From ba6b167af6ee5e63ca79ad22e7719644aed12b2c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 20:50:40 +0200 Subject: Merging debian version 6.8.9-1. Signed-off-by: Daniel Baumann --- ...printk-nbcon-Do-not-rely-on-proxy-headers.patch | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 debian/patches-rt/0015-printk-nbcon-Do-not-rely-on-proxy-headers.patch (limited to 'debian/patches-rt/0015-printk-nbcon-Do-not-rely-on-proxy-headers.patch') diff --git a/debian/patches-rt/0015-printk-nbcon-Do-not-rely-on-proxy-headers.patch b/debian/patches-rt/0015-printk-nbcon-Do-not-rely-on-proxy-headers.patch new file mode 100644 index 0000000000..3ea3dd3d77 --- /dev/null +++ b/debian/patches-rt/0015-printk-nbcon-Do-not-rely-on-proxy-headers.patch @@ -0,0 +1,87 @@ +From: John Ogness +Date: Mon, 19 Feb 2024 17:35:49 +0000 +Subject: [PATCH 15/48] printk: nbcon: Do not rely on proxy headers +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.8/older/patches-6.8.2-rt11.tar.xz + +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 +Signed-off-by: John Ogness +Reviewed-by: Andy Shevchenko +Signed-off-by: Sebastian Andrzej Siewior +--- + kernel/printk/internal.h | 8 ++++++-- + kernel/printk/nbcon.c | 12 +++++++++++- + kernel/printk/printk_ringbuffer.h | 2 ++ + 3 files changed, 19 insertions(+), 3 deletions(-) + +--- a/kernel/printk/internal.h ++++ b/kernel/printk/internal.h +@@ -2,11 +2,12 @@ + /* + * internal.h - printk internal definitions + */ +-#include + #include +-#include "printk_ringbuffer.h" ++#include ++#include + + #if defined(CONFIG_PRINTK) && defined(CONFIG_SYSCTL) ++struct ctl_table; + void __init printk_sysctl_init(void); + int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, + void *buffer, size_t *lenp, loff_t *ppos); +@@ -43,6 +44,9 @@ enum printk_info_flags { + LOG_CONT = 8, /* text is a fragment of a continuation line */ + }; + ++struct printk_ringbuffer; ++struct dev_printk_info; ++ + extern struct printk_ringbuffer *prb; + + __printf(4, 0) +--- a/kernel/printk/nbcon.c ++++ b/kernel/printk/nbcon.c +@@ -2,14 +2,24 @@ + // Copyright (C) 2022 Linutronix GmbH, John Ogness + // Copyright (C) 2022 Intel, Thomas Gleixner + +-#include ++#include + #include + #include + #include ++#include + #include ++#include ++#include ++#include ++#include ++#include + #include ++#include ++#include + #include ++#include + #include "internal.h" ++#include "printk_ringbuffer.h" + /* + * Printk console printing implementation for consoles which does not depend + * on the legacy style console_lock mechanism. +--- a/kernel/printk/printk_ringbuffer.h ++++ b/kernel/printk/printk_ringbuffer.h +@@ -5,6 +5,8 @@ + + #include + #include ++#include ++#include + + /* + * Meta information about each stored message. -- cgit v1.2.3