Skip to contentSkip to conversation

KVM: x86: Use <linux/lockdep.h> for lockdep header inclusion

PATCH Applied Kai Huang 2 participants 2 messages Jun 4 – Jun 9

Subsystems (3)
lore
Share & tools
lore

Kai Huang

author
#0 lore raw

PATCH 1/1 KVM: x86: Use <linux/lockdep.h> for lockdep header inclusion

Commit 9717efbe5ba3 ("KVM: x86: Disallow guest CPUID lookups when IRQs are disabled") added a lockdep assertion to catch unexpected cases where guest CPUID lookup is performed in IRQ disabled context. However that commit used the "linux/lockdep.h" for header inclusion. This header is kernel wide but not KVM local. Switch to using <linux/lockdep.h>.

No 'Fixes' tag since there's no real bug here.

---
 arch/x86/kvm/cpuid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/cpuid.c +1 -1
index fd3b02575cd0..591d2294acd7 100644
@@ -11,7 +11,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/kvm_host.h>
-#include "linux/lockdep.h"
+#include <linux/lockdep.h>
 #include <linux/export.h>
 #include <linux/vmalloc.h>
 #include <linux/uaccess.h>

base-commit: d4bfaa66fa171089b9b9fb2dc17af9245f2b9b34

Signature · 1 line
2.54.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Kai Huang

Commit 9717efbe5ba3 ("KVM: x86: Disallow guest CPUID lookups when IRQs are disabled") added a lockdep assertion to catch unexpected cases where guest CPUID lookup is performed in IRQ disabled context. However that commit used the "linux/lockdep.h" for header inclusion. This header is kernel wide but not KVM local. Switch to using <linux/lockdep.h>.

No 'Fixes' tag since there's no real bug here.

[...]

Applied to kvm-x86 misc, thanks!

[1/1] KVM: x86: Use <linux/lockdep.h> for lockdep header inclusion

      https://github.com/kvm-x86/linux/commit/b8d3d74d8b5f

--
https://github.com/kvm-x86/linux/tree/next