mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
watchdog/core: Add missing prototypes for weak functions
commit81bd415c91
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:73ce0511c4
("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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4fa1a679ed
commit
ca35750b5f
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ static inline int hardlockup_detector_perf_init(void) { return 0; }
|
||||||
void watchdog_nmi_stop(void);
|
void watchdog_nmi_stop(void);
|
||||||
void watchdog_nmi_start(void);
|
void watchdog_nmi_start(void);
|
||||||
int watchdog_nmi_probe(void);
|
int watchdog_nmi_probe(void);
|
||||||
|
int watchdog_nmi_enable(unsigned int cpu);
|
||||||
|
void watchdog_nmi_disable(unsigned int cpu);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* touch_nmi_watchdog - restart NMI watchdog timeout.
|
* touch_nmi_watchdog - restart NMI watchdog timeout.
|
||||||
|
|
Loading…
Reference in a new issue