Skip to content

Commit

Permalink
watchdog: Fix section mismatch and potential undefined behavior.
Browse files Browse the repository at this point in the history
Commit d9ca07a ("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 <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
David Daney authored and torvalds committed Nov 6, 2010
1 parent 4b4a270 commit 433039e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 433039e

Please sign in to comment.