Skip to content

Commit 81bd415

Browse files
malaterreKAGA-KOKO
authored andcommitted
watchdog/core: Add missing prototypes for weak functions
The split out of the hard lockup detector exposed two new weak functions, but no prototypes for them, which triggers the build warning: kernel/watchdog.c:109:12: warning: no previous prototype for ‘watchdog_nmi_enable’ [-Wmissing-prototypes] kernel/watchdog.c:115:13: warning: no previous prototype for ‘watchdog_nmi_disable’ [-Wmissing-prototypes] Add the prototypes. Fixes: 73ce051 ("kernel/watchdog.c: move hardlockup detector to separate file") Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Babu Moger <babu.moger@oracle.com> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20180606194232.17653-1-malat@debian.org
1 parent f75d651 commit 81bd415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/nmi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ static inline int hardlockup_detector_perf_init(void) { return 0; }
119119
void watchdog_nmi_stop(void);
120120
void watchdog_nmi_start(void);
121121
int watchdog_nmi_probe(void);
122+
int watchdog_nmi_enable(unsigned int cpu);
123+
void watchdog_nmi_disable(unsigned int cpu);
122124

123125
/**
124126
* touch_nmi_watchdog - restart NMI watchdog timeout.

0 commit comments

Comments
 (0)