sysctl extern cleanup: signal
Changes
2 files changed · +3 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| include/linux/signal.h | modified | +2 | −0 | View file |
| kernel/sysctl.c | modified | +1 | −1 | View file |
include/linux/signal.h
View filediff --git a/include/linux/signal.h b/include/linux/signal.h
index ab9272c..fcd2b14 100644
--- a/include/linux/signal.h
+++ b/include/linux/signal.h
@@ -7,6 +7,8 @@
#ifdef __KERNEL__
#include <linux/list.h>
+/* for sysctl */
+extern int print_fatal_signals;
/*
* Real Time signals may be queued.
*/
kernel/sysctl.c
View filediff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 72c3b1e..a8fd10a 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -23,6 +23,7 @@
#include <linux/swap.h>
#include <linux/slab.h>
#include <linux/sysctl.h>
+#include <linux/signal.h>
#include <linux/proc_fs.h>
#include <linux/security.h>
#include <linux/ctype.h>
@@ -65,7 +66,6 @@
#if defined(CONFIG_SYSCTL)
/* External variables not in a header file. */
-extern int print_fatal_signals;
extern int sysctl_overcommit_memory;
extern int sysctl_overcommit_ratio;
extern int sysctl_panic_on_oom;