Skip to contentSkip to conversation

KVM: VMX: Include architectural defs header in capabilities.h

PATCH In review Sean Christopherson 2 participants 2 messages Apr 18, 2019

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

PATCH 1/1 KVM: VMX: Include architectural defs header in capabilities.h

The capabilities header depends on asm/vmx.h but doesn't explicitly include said file. This currently doesn't cause problems as all users of capbilities.h first include asm/vmx.h, but the issue often results in build errors if someone starts moving things around the VMX files.

Fixes 3077c1910882 ("KVM: VMX: Move capabilities structs and helpers to dedicated file")
---
 arch/x86/kvm/vmx/capabilities.h | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kvm/vmx/capabilities.h +2 -0
index 854e144131c6..d6664ee3d127 100644
@@ -2,6 +2,8 @@
 #ifndef __KVM_X86_VMX_CAPS_H
 #define __KVM_X86_VMX_CAPS_H
 
+#include <asm/vmx.h>
+
 #include "lapic.h"
 
 extern bool __read_mostly enable_vpid;
Signature · 1 line
2.21.0
maintainer
#1 lore raw
Quoted 17 lines · Sean Christopherson

The capabilities header depends on asm/vmx.h but doesn't explicitly include said file. This currently doesn't cause problems as all users of capbilities.h first include asm/vmx.h, but the issue often results in build errors if someone starts moving things around the VMX files.

Fixes 3077c1910882 ("KVM: VMX: Move capabilities structs and helpers to dedicated file")
---
 arch/x86/kvm/vmx/capabilities.h | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kvm/vmx/capabilities.h +0 -0
index 854e144131c6..d6664ee3d127 100644

arch/x86/kvm/vmx/capabilities.h line 9

Quoted 8 lines
arch/x86/kvm/vmx/capabilities.h +2 -0
@@ -2,6 +2,8 @@
 #ifndef __KVM_X86_VMX_CAPS_H
 #define __KVM_X86_VMX_CAPS_H
 
+#include <asm/vmx.h>
+
 #include "lapic.h"
 
 extern bool __read_mostly enable_vpid;

Queued.

Paolo