watchdog: fix build error
authorYoungmin Nam <youngmin.nam@samsung.com>
Thu, 2 May 2019 07:47:46 +0000 (16:47 +0900)
committerYoungmin Nam <youngmin.nam@samsung.com>
Fri, 3 May 2019 04:54:26 +0000 (13:54 +0900)
Change-Id: I7fb4da0909d6bd90ce730d918ebb1a1a7ad168ff
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
kernel/watchdog.c

index c4f8a1fa2453e2fedb4ebdec97c263439cce886f..47f451e78c8acdad44e1dd8846e8cac462d6ba47 100644 (file)
@@ -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);