2010-11-05 23:17:52

by David Daney

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: David Daney <[email protected]>
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(-)

diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index bafba68..6e3c41a 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 */
--
1.7.2.3