Skip to content

Commit 652ab7c

Browse files
wangjinchaoakpm00
authored andcommitted
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>
1 parent fe7a283 commit 652ab7c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

kernel/crash_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com>
55
*/
66

7-
#include "linux/panic.h"
87
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
98

109
#include <linux/buildid.h>
@@ -23,6 +22,7 @@
2322
#include <linux/btf.h>
2423
#include <linux/objtool.h>
2524
#include <linux/delay.h>
25+
#include <linux/panic.h>
2626

2727
#include <asm/page.h>
2828
#include <asm/sections.h>

kernel/printk/nbcon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Copyright (C) 2022 Linutronix GmbH, John Ogness
33
// Copyright (C) 2022 Intel, Thomas Gleixner
44

5-
#include "linux/panic.h"
65
#include <linux/atomic.h>
76
#include <linux/bug.h>
87
#include <linux/console.h>
@@ -13,6 +12,7 @@
1312
#include <linux/irqflags.h>
1413
#include <linux/kthread.h>
1514
#include <linux/minmax.h>
15+
#include <linux/panic.h>
1616
#include <linux/percpu.h>
1717
#include <linux/preempt.h>
1818
#include <linux/slab.h>

kernel/printk/printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* 01Mar01 Andrew Morton
1818
*/
1919

20-
#include "linux/panic.h"
2120
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
2221

2322
#include <linux/kernel.h>
@@ -49,6 +48,7 @@
4948
#include <linux/sched/clock.h>
5049
#include <linux/sched/debug.h>
5150
#include <linux/sched/task_stack.h>
51+
#include <linux/panic.h>
5252

5353
#include <linux/uaccess.h>
5454
#include <asm/sections.h>

0 commit comments

Comments
 (0)