[PATCH 1/1] asm-generic/hyperv: Add missing #include of nmi.h

Subsystems: generic include/asm header files, hyper-v/azure core and drivers, the rest

STALE1857d LANDED

Landed in mainline as ba3f5839fbeb on 2021-07-12.

2 messages, 2 authors, 2021-07-12 · open the first message on its own page

[PATCH 1/1] asm-generic/hyperv: Add missing #include of nmi.h

From: Michael Kelley <hidden>
Date: 2021-07-12 02:50:35

The recent move of hv_do_rep_hypercall() to this file adds
a reference to touch_nmi_watchdog(). Its function definition
is included indirectly when compiled on x86, but not when
compiled on ARM64. So add the explicit #include.

No functional change.

Signed-off-by: Michael Kelley <redacted>
---
 include/asm-generic/mshyperv.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/include/asm-generic/mshyperv.h b/include/asm-generic/mshyperv.h
index 2a187fe..60cdff3 100644
--- a/include/asm-generic/mshyperv.h
+++ b/include/asm-generic/mshyperv.h
@@ -22,6 +22,7 @@
 #include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/cpumask.h>
+#include <linux/nmi.h>
 #include <asm/ptrace.h>
 #include <asm/hyperv-tlfs.h>
 
-- 
1.8.3.1

Re: [PATCH 1/1] asm-generic/hyperv: Add missing #include of nmi.h

From: Wei Liu <wei.liu@kernel.org>
Date: 2021-07-12 17:27:05

On Sun, Jul 11, 2021 at 07:50:04PM -0700, Michael Kelley wrote:
The recent move of hv_do_rep_hypercall() to this file adds
a reference to touch_nmi_watchdog(). Its function definition
is included indirectly when compiled on x86, but not when
compiled on ARM64. So add the explicit #include.

No functional change.

Signed-off-by: Michael Kelley <redacted>
Applied to hyperv-next. Thanks.
quoted hunk
---
 include/asm-generic/mshyperv.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/include/asm-generic/mshyperv.h b/include/asm-generic/mshyperv.h
index 2a187fe..60cdff3 100644
--- a/include/asm-generic/mshyperv.h
+++ b/include/asm-generic/mshyperv.h
@@ -22,6 +22,7 @@
 #include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/cpumask.h>
+#include <linux/nmi.h>
 #include <asm/ptrace.h>
 #include <asm/hyperv-tlfs.h>
 
-- 
1.8.3.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help