]> Git Repo - linux.git/commitdiff
kernel.h: Move oops_in_progress to printk.h
authorAndy Shevchenko <[email protected]>
Fri, 11 Sep 2020 17:02:02 +0000 (20:02 +0300)
committerPetr Mladek <[email protected]>
Tue, 15 Sep 2020 11:51:08 +0000 (13:51 +0200)
The oops_in_progress is defined in printk.c, so it's logical
to move oops_in_progress to printk.h.

Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
include/linux/debug_locks.h
include/linux/kernel.h
include/linux/printk.h

index e7e45f0cc7da511b04889e68824600e831a7fbb8..2915f56ad4214f1586df36665feb16f3b97336ca 100644 (file)
@@ -2,9 +2,9 @@
 #ifndef __LINUX_DEBUG_LOCKING_H
 #define __LINUX_DEBUG_LOCKING_H
 
-#include <linux/kernel.h>
 #include <linux/atomic.h>
 #include <linux/bug.h>
+#include <linux/printk.h>
 
 struct task_struct;
 
index 82d91547d122d50ef1f0afedb566b80aca2b3863..6cef4ca5589c8823c5a3f6d3b37f418225a46183 100644 (file)
@@ -527,7 +527,6 @@ extern unsigned int sysctl_oops_all_cpu_backtrace;
 #endif /* CONFIG_SMP */
 
 extern void bust_spinlocks(int yes);
-extern int oops_in_progress;           /* If set, an oops, panic(), BUG() or die() is in progress */
 extern int panic_timeout;
 extern unsigned long panic_print;
 extern int panic_on_oops;
index 34c1a7be3e014ffa75dff86237942dc73bcb16ed..f749a2c2e7a5c75a5b6816c7d1cb07e6a249a372 100644 (file)
@@ -12,6 +12,8 @@
 extern const char linux_banner[];
 extern const char linux_proc_banner[];
 
+extern int oops_in_progress;   /* If set, an oops, panic(), BUG() or die() is in progress */
+
 #define PRINTK_MAX_SINGLE_HEADER_LEN 2
 
 static inline int printk_get_level(const char *buffer)
This page took 0.064578 seconds and 4 git commands to generate.