diff options
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 0ef19c614f6d..8686b0f5fc12 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include <linux/swap.h> | 23 | #include <linux/swap.h> |
| 24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
| 25 | #include <linux/sysctl.h> | 25 | #include <linux/sysctl.h> |
| 26 | #include <linux/signal.h> | ||
| 26 | #include <linux/proc_fs.h> | 27 | #include <linux/proc_fs.h> |
| 27 | #include <linux/security.h> | 28 | #include <linux/security.h> |
| 28 | #include <linux/ctype.h> | 29 | #include <linux/ctype.h> |
| @@ -60,13 +61,23 @@ | |||
| 60 | #include <asm/stacktrace.h> | 61 | #include <asm/stacktrace.h> |
| 61 | #include <asm/io.h> | 62 | #include <asm/io.h> |
| 62 | #endif | 63 | #endif |
| 64 | #ifdef CONFIG_BSD_PROCESS_ACCT | ||
| 65 | #include <linux/acct.h> | ||
| 66 | #endif | ||
| 67 | #ifdef CONFIG_RT_MUTEXES | ||
| 68 | #include <linux/rtmutex.h> | ||
| 69 | #endif | ||
| 70 | #if defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_LOCK_STAT) | ||
| 71 | #include <linux/lockdep.h> | ||
| 72 | #endif | ||
| 73 | #ifdef CONFIG_CHR_DEV_SG | ||
| 74 | #include <scsi/sg.h> | ||
| 75 | #endif | ||
| 63 | 76 | ||
| 64 | 77 | ||
| 65 | #if defined(CONFIG_SYSCTL) | 78 | #if defined(CONFIG_SYSCTL) |
| 66 | 79 | ||
| 67 | /* External variables not in a header file. */ | 80 | /* External variables not in a header file. */ |
| 68 | extern int C_A_D; | ||
| 69 | extern int print_fatal_signals; | ||
| 70 | extern int sysctl_overcommit_memory; | 81 | extern int sysctl_overcommit_memory; |
| 71 | extern int sysctl_overcommit_ratio; | 82 | extern int sysctl_overcommit_ratio; |
| 72 | extern int sysctl_panic_on_oom; | 83 | extern int sysctl_panic_on_oom; |
| @@ -88,9 +99,6 @@ extern int sysctl_nr_open_min, sysctl_nr_open_max; | |||
| 88 | #ifndef CONFIG_MMU | 99 | #ifndef CONFIG_MMU |
| 89 | extern int sysctl_nr_trim_pages; | 100 | extern int sysctl_nr_trim_pages; |
| 90 | #endif | 101 | #endif |
| 91 | #ifdef CONFIG_RCU_TORTURE_TEST | ||
| 92 | extern int rcutorture_runnable; | ||
| 93 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ | ||
| 94 | #ifdef CONFIG_BLOCK | 102 | #ifdef CONFIG_BLOCK |
| 95 | extern int blk_iopoll_enabled; | 103 | extern int blk_iopoll_enabled; |
| 96 | #endif | 104 | #endif |
| @@ -120,14 +128,6 @@ static int min_percpu_pagelist_fract = 8; | |||
| 120 | 128 | ||
| 121 | static int ngroups_max = NGROUPS_MAX; | 129 | static int ngroups_max = NGROUPS_MAX; |
| 122 | 130 | ||
| 123 | #ifdef CONFIG_MODULES | ||
| 124 | extern char modprobe_path[]; | ||
| 125 | extern int modules_disabled; | ||
| 126 | #endif | ||
| 127 | #ifdef CONFIG_CHR_DEV_SG | ||
| 128 | extern int sg_big_buff; | ||
| 129 | #endif | ||
| 130 | |||
| 131 | #ifdef CONFIG_SPARC | 131 | #ifdef CONFIG_SPARC |
| 132 | #include <asm/system.h> | 132 | #include <asm/system.h> |
| 133 | #endif | 133 | #endif |
| @@ -149,10 +149,6 @@ extern int sysctl_userprocess_debug; | |||
| 149 | extern int spin_retry; | 149 | extern int spin_retry; |
| 150 | #endif | 150 | #endif |
| 151 | 151 | ||
| 152 | #ifdef CONFIG_BSD_PROCESS_ACCT | ||
| 153 | extern int acct_parm[]; | ||
| 154 | #endif | ||
| 155 | |||
| 156 | #ifdef CONFIG_IA64 | 152 | #ifdef CONFIG_IA64 |
| 157 | extern int no_unaligned_warning; | 153 | extern int no_unaligned_warning; |
| 158 | extern int unaligned_dump_stack; | 154 | extern int unaligned_dump_stack; |
| @@ -160,10 +156,6 @@ extern int unaligned_dump_stack; | |||
| 160 | 156 | ||
| 161 | extern struct ratelimit_state printk_ratelimit_state; | 157 | extern struct ratelimit_state printk_ratelimit_state; |
| 162 | 158 | ||
| 163 | #ifdef CONFIG_RT_MUTEXES | ||
| 164 | extern int max_lock_depth; | ||
| 165 | #endif | ||
| 166 | |||
| 167 | #ifdef CONFIG_PROC_SYSCTL | 159 | #ifdef CONFIG_PROC_SYSCTL |
| 168 | static int proc_do_cad_pid(struct ctl_table *table, int write, | 160 | static int proc_do_cad_pid(struct ctl_table *table, int write, |
| 169 | void __user *buffer, size_t *lenp, loff_t *ppos); | 161 | void __user *buffer, size_t *lenp, loff_t *ppos); |
| @@ -202,9 +194,6 @@ extern struct ctl_table epoll_table[]; | |||
| 202 | int sysctl_legacy_va_layout; | 194 | int sysctl_legacy_va_layout; |
| 203 | #endif | 195 | #endif |
| 204 | 196 | ||
| 205 | extern int prove_locking; | ||
| 206 | extern int lock_stat; | ||
| 207 | |||
| 208 | /* The default sysctl tables: */ | 197 | /* The default sysctl tables: */ |
| 209 | 198 | ||
| 210 | static struct ctl_table root_table[] = { | 199 | static struct ctl_table root_table[] = { |
