]> xenbits.xensource.com Git - xen.git/commitdiff
x86/nmi: include missing header with declarations for 'watchdog_*'
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Thu, 10 Aug 2023 13:16:20 +0000 (15:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Aug 2023 13:16:20 +0000 (15:16 +0200)
Include an additional header to make the declarations for
functions 'watchdog_*' visible prior to their definition in the
file, thereby resolving the violations of MISRA C:2012 Rule 8.4.

No functional change.

Fixes: c8177e691f0f ("watchdog: Move watchdog from being x86 specific to common code")
Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/nmi.c

index 104e366bd3109cc0008cc3aa4ebef5ee63914055..dc79c25e3ffdfa1e3fd24f34ad2945dfd07dd9b1 100644 (file)
@@ -24,6 +24,7 @@
 #include <xen/console.h>
 #include <xen/smp.h>
 #include <xen/keyhandler.h>
+#include <xen/watchdog.h>
 #include <xen/cpu.h>
 #include <asm/current.h>
 #include <asm/mc146818rtc.h>