Skip to contentSkip to conversation

asm-generic/hyperv: Add missing #include of nmi.h

PATCH Applied Michael Kelley 2 participants 2 messages Jul 12, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

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.

---
 include/asm-generic/mshyperv.h | 1 +
 1 file changed, 1 insertion(+)
include/asm-generic/mshyperv.h +1 -0
index 2a187fe..60cdff3 100644
@@ -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>
 
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Michael Kelley

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.

Applied to hyperv-next. Thanks.

Quoted 19 lines
---
 include/asm-generic/mshyperv.h | 1 +
 1 file changed, 1 insertion(+)
include/asm-generic/mshyperv.h +1 -0
index 2a187fe..60cdff3 100644
@@ -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>
 
Signature · 1 line
1.8.3.1