diff options
author | David Daney <ddaney@caviumnetworks.com> | 2010-11-05 16:17:39 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-11-05 17:45:35 -0700 |
commit | 433039e97f672b81e6c8f6daef385dcf035c6e29 (patch) | |
tree | 0b4b181cf1db4019ae34dccc49e06945e4df117b /kernel | |
parent | 4b4a2700f462102569b407102c60d3b9cf4432a0 (diff) | |
download | talos-obmc-linux-433039e97f672b81e6c8f6daef385dcf035c6e29.tar.gz talos-obmc-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')
-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 */ |