Commit 433039e97f672b81e6c8f6daef385dcf035c6e29

Authored by David Daney
Committed by Linus Torvalds
1 parent 4b4a2700f4

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -43,7 +43,7 @@
43 43 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
44 44 #endif
45 45  
46   -static int __initdata no_watchdog;
  46 +static int no_watchdog;
47 47  
48 48  
49 49 /* boot commands */