aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index fe4713347275..cfc5295f1e82 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -80,7 +80,6 @@ extern int pid_max_min, pid_max_max;
80extern int sysctl_drop_caches; 80extern int sysctl_drop_caches;
81extern int percpu_pagelist_fraction; 81extern int percpu_pagelist_fraction;
82extern int compat_log; 82extern int compat_log;
83extern int maps_protect;
84extern int latencytop_enabled; 83extern int latencytop_enabled;
85extern int sysctl_nr_open_min, sysctl_nr_open_max; 84extern int sysctl_nr_open_min, sysctl_nr_open_max;
86#ifdef CONFIG_RCU_TORTURE_TEST 85#ifdef CONFIG_RCU_TORTURE_TEST
@@ -97,7 +96,7 @@ static int sixty = 60;
97static int neg_one = -1; 96static int neg_one = -1;
98#endif 97#endif
99 98
100#ifdef CONFIG_MMU 99#if defined(CONFIG_MMU) && defined(CONFIG_FILE_LOCKING)
101static int two = 2; 100static int two = 2;
102#endif 101#endif
103 102
@@ -118,10 +117,8 @@ extern char modprobe_path[];
118extern int sg_big_buff; 117extern int sg_big_buff;
119#endif 118#endif
120 119
121#ifdef __sparc__ 120#ifdef CONFIG_SPARC
122extern char reboot_command []; 121#include <asm/system.h>
123extern int stop_a_enabled;
124extern int scons_pwroff;
125#endif 122#endif
126 123
127#ifdef __hppa__ 124#ifdef __hppa__
@@ -159,6 +156,7 @@ static int proc_dointvec_taint(struct ctl_table *table, int write, struct file *
159static struct ctl_table root_table[]; 156static struct ctl_table root_table[];
160static struct ctl_table_root sysctl_table_root; 157static struct ctl_table_root sysctl_table_root;
161static struct ctl_table_header root_table_header = { 158static struct ctl_table_header root_table_header = {
159 .count = 1,
162 .ctl_table = root_table, 160 .ctl_table = root_table,
163 .ctl_entry = LIST_HEAD_INIT(sysctl_table_root.default_set.list), 161 .ctl_entry = LIST_HEAD_INIT(sysctl_table_root.default_set.list),
164 .root = &sysctl_table_root, 162 .root = &sysctl_table_root,
@@ -414,7 +412,7 @@ static struct ctl_table kern_table[] = {
414 .mode = 0644, 412 .mode = 0644,
415 .proc_handler = &proc_dointvec, 413 .proc_handler = &proc_dointvec,
416 }, 414 },
417#ifdef __sparc__ 415#ifdef CONFIG_SPARC
418 { 416 {
419 .ctl_name = KERN_SPARC_REBOOT, 417 .ctl_name = KERN_SPARC_REBOOT,
420 .procname = "reboot-cmd", 418 .procname = "reboot-cmd",
@@ -809,16 +807,6 @@ static struct ctl_table kern_table[] = {
809 .proc_handler = &proc_dointvec, 807 .proc_handler = &proc_dointvec,
810 }, 808 },
811#endif 809#endif
812#ifdef CONFIG_PROC_FS
813 {
814 .ctl_name = CTL_UNNUMBERED,
815 .procname = "maps_protect",
816 .data = &maps_protect,
817 .maxlen = sizeof(int),
818 .mode = 0644,
819 .proc_handler = &proc_dointvec,
820 },
821#endif
822 { 810 {
823 .ctl_name = CTL_UNNUMBERED, 811 .ctl_name = CTL_UNNUMBERED,
824 .procname = "poweroff_cmd", 812 .procname = "poweroff_cmd",
@@ -1260,6 +1248,7 @@ static struct ctl_table fs_table[] = {
1260 .extra1 = &minolduid, 1248 .extra1 = &minolduid,
1261 .extra2 = &maxolduid, 1249 .extra2 = &maxolduid,
1262 }, 1250 },
1251#ifdef CONFIG_FILE_LOCKING
1263 { 1252 {
1264 .ctl_name = FS_LEASES, 1253 .ctl_name = FS_LEASES,
1265 .procname = "leases-enable", 1254 .procname = "leases-enable",
@@ -1268,6 +1257,7 @@ static struct ctl_table fs_table[] = {
1268 .mode = 0644, 1257 .mode = 0644,
1269 .proc_handler = &proc_dointvec, 1258 .proc_handler = &proc_dointvec,
1270 }, 1259 },
1260#endif
1271#ifdef CONFIG_DNOTIFY 1261#ifdef CONFIG_DNOTIFY
1272 { 1262 {
1273 .ctl_name = FS_DIR_NOTIFY, 1263 .ctl_name = FS_DIR_NOTIFY,
@@ -1279,6 +1269,7 @@ static struct ctl_table fs_table[] = {
1279 }, 1269 },
1280#endif 1270#endif
1281#ifdef CONFIG_MMU 1271#ifdef CONFIG_MMU
1272#ifdef CONFIG_FILE_LOCKING
1282 { 1273 {
1283 .ctl_name = FS_LEASE_TIME, 1274 .ctl_name = FS_LEASE_TIME,
1284 .procname = "lease-break-time", 1275 .procname = "lease-break-time",
@@ -1290,6 +1281,7 @@ static struct ctl_table fs_table[] = {
1290 .extra1 = &zero, 1281 .extra1 = &zero,
1291 .extra2 = &two, 1282 .extra2 = &two,
1292 }, 1283 },
1284#endif
1293 { 1285 {
1294 .procname = "aio-nr", 1286 .procname = "aio-nr",
1295 .data = &aio_nr, 1287 .data = &aio_nr,