From: David Daney Date: Fri, 5 Nov 2010 23:17:39 +0000 (-0700) Subject: watchdog: Fix section mismatch and potential undefined behavior. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=433039e97f672b81e6c8f6daef385dcf035c6e29;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Stephane Eranian Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Linus Torvalds --- diff --git a/kernel/watchdog.c b/kernel/watchdog.c index bafba687a6d8..6e3c41a4024c 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 */