diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e5da394d1ca3..c9ec050bcf46 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -128,6 +128,7 @@ static int zero; | |||
128 | static int __maybe_unused one = 1; | 128 | static int __maybe_unused one = 1; |
129 | static int __maybe_unused two = 2; | 129 | static int __maybe_unused two = 2; |
130 | static int __maybe_unused four = 4; | 130 | static int __maybe_unused four = 4; |
131 | static unsigned long zero_ul; | ||
131 | static unsigned long one_ul = 1; | 132 | static unsigned long one_ul = 1; |
132 | static unsigned long long_max = LONG_MAX; | 133 | static unsigned long long_max = LONG_MAX; |
133 | static int one_hundred = 100; | 134 | static int one_hundred = 100; |
@@ -1750,7 +1751,7 @@ static struct ctl_table fs_table[] = { | |||
1750 | .maxlen = sizeof(files_stat.max_files), | 1751 | .maxlen = sizeof(files_stat.max_files), |
1751 | .mode = 0644, | 1752 | .mode = 0644, |
1752 | .proc_handler = proc_doulongvec_minmax, | 1753 | .proc_handler = proc_doulongvec_minmax, |
1753 | .extra1 = &zero, | 1754 | .extra1 = &zero_ul, |
1754 | .extra2 = &long_max, | 1755 | .extra2 = &long_max, |
1755 | }, | 1756 | }, |
1756 | { | 1757 | { |