From cb37891bd656178d0593fa24bccc0f4539836511 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 21 Oct 2003 18:20:57 -0700 Subject: [PATCH] [PATCH] export system_running to other files There seems to be no header file which declares system_running. --- include/linux/kernel.h | 2 +- init/main.c | 2 +- kernel/kmod.c | 2 +- kernel/sys.c | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 6403c9ef22101..6d4cb2db44dbc 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -101,7 +101,7 @@ static inline void console_verbose(void) 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_on_oops; - +extern int system_running; extern int tainted; extern const char *print_tainted(void); #define TAINT_PROPRIETARY_MODULE (1<<0) diff --git a/init/main.c b/init/main.c index 2b9b862c1a750..610c7767e0134 100644 --- a/init/main.c +++ b/init/main.c @@ -94,7 +94,7 @@ extern void tc_init(void); * Are we up and running (ie do we have all the infrastructure * set up) */ -int system_running = 0; +int system_running; /* * Boot command-line arguments diff --git a/kernel/kmod.c b/kernel/kmod.c index f5d658f704d93..2c74533c0b963 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -36,7 +36,7 @@ #include #include -extern int max_threads, system_running; +extern int max_threads; #ifdef CONFIG_KMOD diff --git a/kernel/sys.c b/kernel/sys.c index 9b914004fde87..f25fc2166ee09 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -78,8 +78,6 @@ EXPORT_SYMBOL(fs_overflowgid); int C_A_D = 1; int cad_pid = 1; -extern int system_running; - /* * Notifier list for kernel code which wants to be called * at shutdown. This is used to stop any idling DMA operations -- 2.53.0