diff options
author | David Daney | 2010-11-06 00:17:39 +0100 |
---|---|---|
committer | Linus Torvalds | 2010-11-06 01:45:35 +0100 |
commit | 433039e97f672b81e6c8f6daef385dcf035c6e29 (patch) | |
tree | 0b4b181cf1db4019ae34dccc49e06945e4df117b /kernel/watchdog.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (diff) | |
download | kernel-qcow2-linux-433039e97f672b81e6c8f6daef385dcf035c6e29.tar.gz kernel-qcow2-linux-433039e97f672b81e6c8f6daef385dcf035c6e29.tar.xz kernel-qcow2-linux-433039e97f672b81e6c8f6daef385dcf035c6e29.zip |
watchdog: Fix section mismatch and potential undefined behavior.
Commit d9ca07a05ce1 ("watchdog: Avoid kernel crash when disabling
watchdog") introduces a section mismatch.
Now that we reference no_watchdog from non-__init code it can no longer
be __initdata.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r-- | kernel/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index bafba687a6d8..6e3c41a4024c 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -43,7 +43,7 @@ static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_saved); static DEFINE_PER_CPU(struct perf_event *, watchdog_ev); #endif -static int __initdata no_watchdog; +static int no_watchdog; /* boot commands */ |