From bb3eb633b99c68343fe861218236646b58bfac2f Mon Sep 17 00:00:00 2001 From: Youngmin Nam Date: Thu, 2 May 2019 16:47:46 +0900 Subject: [PATCH] watchdog: fix build error Change-Id: I7fb4da0909d6bd90ce730d918ebb1a1a7ad168ff Signed-off-by: Youngmin Nam --- kernel/watchdog.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/kernel/watchdog.c b/kernel/watchdog.c index c4f8a1fa2453..47f451e78c8a 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -110,10 +110,7 @@ __setup("hardlockup_all_cpu_backtrace=", hardlockup_all_cpu_backtrace_setup); * SOFTLOCKUP_DETECTOR Kconfig. */ -#ifdef CONFIG_HARDLOCKUP_DETECTOR_OTHER_CPU -static int watchdog_nmi_enable(unsigned int cpu); -static void watchdog_nmi_disable(unsigned int cpu); -#else +#ifndef CONFIG_HARDLOCKUP_DETECTOR_OTHER_CPU int __weak watchdog_nmi_enable(unsigned int cpu) { hardlockup_detector_perf_enable(); @@ -915,7 +912,7 @@ void touch_nmi_watchdog(void) } EXPORT_SYMBOL(touch_nmi_watchdog); -static int watchdog_nmi_enable(unsigned int cpu) +int watchdog_nmi_enable(unsigned int cpu) { /* * The new cpu will be marked online before the first hrtimer interrupt @@ -931,7 +928,7 @@ static int watchdog_nmi_enable(unsigned int cpu) return 0; } -static void watchdog_nmi_disable(unsigned int cpu) +void watchdog_nmi_disable(unsigned int cpu) { unsigned int next_cpu = watchdog_next_cpu(cpu); -- 2.20.1