From: Youngmin Nam Date: Thu, 2 May 2019 07:47:46 +0000 (+0900) Subject: watchdog: fix build error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e4e1250db88f723d1bb3d8a4fb1a79bc4b90719;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git watchdog: fix build error Change-Id: I7fb4da0909d6bd90ce730d918ebb1a1a7ad168ff Signed-off-by: Youngmin Nam --- diff --git a/kernel/watchdog.c b/kernel/watchdog.c index b17d91dc1ef2..e66fccbedec7 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(); @@ -917,7 +914,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 @@ -933,7 +930,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);