Skip to content

Commit cb7c993

Browse files
malaterregregkh
authored andcommitted
watchdog/core: Add missing prototypes for weak functions
commit 81bd415 upstream. 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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Babu Moger <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 139ca3d commit cb7c993

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)