2023-07-12 03:44:05

by shijie001

[permalink] [raw]
Subject: [PATCH] KVM: x86:Fix warning in cpuid.h

The following checkpatch warning is removed:
WARNING: Use #include <linux/processor.h> instead of <asm/processor.h>

Signed-off-by: Jie Shi <[email protected]>
---
arch/x86/kvm/cpuid.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/cpuid.h b/arch/x86/kvm/cpuid.h
index b1658c0de847..65188baf00be 100644
--- a/arch/x86/kvm/cpuid.h
+++ b/arch/x86/kvm/cpuid.h
@@ -5,7 +5,7 @@
#include "x86.h"
#include "reverse_cpuid.h"
#include <asm/cpu.h>
-#include <asm/processor.h>
+#include <linux/processor.h>
#include <uapi/asm/kvm_para.h>

extern u32 kvm_cpu_caps[NR_KVM_CPU_CAPS] __read_mostly;