Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

panic: use angle-bracket include for panic.h

Replace quoted includes of panic.h with `#include <linux/panic.h>` for
consistency across the kernel.

Link: https://lkml.kernel.org/r/20250829051312.33773-1-wangjinchao600@gmail.com
Signed-off-by: Jinchao Wang <wangjinchao600@gmail.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Qianqiang Liu <qianqiang.liu@163.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Jinchao Wang and committed by
Andrew Morton
652ab7c8 fe7a283b

+3 -3
+1 -1
kernel/crash_core.c
··· 4 4 * Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com> 5 5 */ 6 6 7 - #include "linux/panic.h" 8 7 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 9 8 10 9 #include <linux/buildid.h> ··· 22 23 #include <linux/btf.h> 23 24 #include <linux/objtool.h> 24 25 #include <linux/delay.h> 26 + #include <linux/panic.h> 25 27 26 28 #include <asm/page.h> 27 29 #include <asm/sections.h>
+1 -1
kernel/printk/nbcon.c
··· 2 2 // Copyright (C) 2022 Linutronix GmbH, John Ogness 3 3 // Copyright (C) 2022 Intel, Thomas Gleixner 4 4 5 - #include "linux/panic.h" 6 5 #include <linux/atomic.h> 7 6 #include <linux/bug.h> 8 7 #include <linux/console.h> ··· 12 13 #include <linux/irqflags.h> 13 14 #include <linux/kthread.h> 14 15 #include <linux/minmax.h> 16 + #include <linux/panic.h> 15 17 #include <linux/percpu.h> 16 18 #include <linux/preempt.h> 17 19 #include <linux/slab.h>
+1 -1
kernel/printk/printk.c
··· 17 17 * 01Mar01 Andrew Morton 18 18 */ 19 19 20 - #include "linux/panic.h" 21 20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 22 21 23 22 #include <linux/kernel.h> ··· 48 49 #include <linux/sched/clock.h> 49 50 #include <linux/sched/debug.h> 50 51 #include <linux/sched/task_stack.h> 52 + #include <linux/panic.h> 51 53 52 54 #include <linux/uaccess.h> 53 55 #include <asm/sections.h>