1
0
Fork 0

watchdog: Fix section mismatch and potential undefined behavior.

Commit d9ca07a05c ("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>
hifive-unleashed-5.1
David Daney 2010-11-05 16:17:39 -07:00 committed by Linus Torvalds
parent 4b4a2700f4
commit 433039e97f
1 changed files with 1 additions and 1 deletions

View File

@ -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 */