Skip to contentSkip to conversation

watchdog: Fix section missmatch and potential undefined behavior.

PATCH New David Daney 1 participant 1 message Nov 5, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: Fix section missmatch and potential undefined behavior.

Commit d9ca07a05ce1c42ac9717e54eaea4546a3a80978 introduces the section missmatch. Now that we reference no_watchdog from non-__init code it can no longer be __initdata.

Cc Stephane Eranian <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>
---
 kernel/watchdog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/watchdog.c +1 -1
index bafba68..6e3c41a 100644
@@ -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 */
Signature · 1 line
1.7.2.3