aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/panic.c1
-rw-r--r--kernel/sys.c8
-rw-r--r--kernel/sysctl.c11
3 files changed, 8 insertions, 12 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 6ceb664fb5..525e365f72 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -21,7 +21,6 @@
21#include <linux/debug_locks.h> 21#include <linux/debug_locks.h>
22 22
23int panic_on_oops; 23int panic_on_oops;
24int panic_on_unrecovered_nmi;
25int tainted; 24int tainted;
26static int pause_on_oops; 25static int pause_on_oops;
27static int pause_on_oops_flag; 26static int pause_on_oops_flag;
diff --git a/kernel/sys.c b/kernel/sys.c
index 8647061c08..b88806c662 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -2083,12 +2083,12 @@ asmlinkage long sys_getcpu(unsigned __user *cpup, unsigned __user *nodep,
2083 * padding 2083 * padding
2084 */ 2084 */
2085 unsigned long t0, t1; 2085 unsigned long t0, t1;
2086 get_user(t0, &cache->t0); 2086 get_user(t0, &cache->blob[0]);
2087 get_user(t1, &cache->t1); 2087 get_user(t1, &cache->blob[1]);
2088 t0++; 2088 t0++;
2089 t1++; 2089 t1++;
2090 put_user(t0, &cache->t0); 2090 put_user(t0, &cache->blob[0]);
2091 put_user(t1, &cache->t1); 2091 put_user(t1, &cache->blob[1]);
2092 } 2092 }
2093 return err ? -EFAULT : 0; 2093 return err ? -EFAULT : 0;
2094} 2094}
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 9535a38399..c57c4532e2 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -52,6 +52,10 @@
52extern int proc_nr_files(ctl_table *table, int write, struct file *filp, 52extern int proc_nr_files(ctl_table *table, int write, struct file *filp,
53 void __user *buffer, size_t *lenp, loff_t *ppos); 53 void __user *buffer, size_t *lenp, loff_t *ppos);
54 54
55#ifdef CONFIG_X86
56#include <asm/nmi.h>
57#endif
58
55#if defined(CONFIG_SYSCTL) 59#if defined(CONFIG_SYSCTL)
56 60
57/* External variables not in a header file. */ 61/* External variables not in a header file. */
@@ -74,13 +78,6 @@ extern int sysctl_drop_caches;
74extern int percpu_pagelist_fraction; 78extern int percpu_pagelist_fraction;
75extern int compat_log; 79extern int compat_log;
76 80
77#if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86)
78int unknown_nmi_panic;
79int nmi_watchdog_enabled;
80extern int proc_nmi_enabled(struct ctl_table *, int , struct file *,
81 void __user *, size_t *, loff_t *);
82#endif
83
84/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ 81/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
85static int maxolduid = 65535; 82static int maxolduid = 65535;
86static int minolduid; 83static int minolduid;