]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: x86: Use <linux/lockdep.h> for lockdep header inclusion
authorKai Huang <kai.huang@intel.com>
Thu, 4 Jun 2026 01:11:06 +0000 (13:11 +1200)
committerSean Christopherson <seanjc@google.com>
Thu, 4 Jun 2026 12:22:29 +0000 (05:22 -0700)
When KVM added a lockdep assertion to catch unexpected cases where guest
CPUID lookups are performed in IRQ disabled context, it used
"linux/lockdep.h" for header inclusion even though lockdep.h is a
kernel wide header.  Switch to using <linux/lockdep.h>.

Fixes: 9717efbe5ba3 ("KVM: x86: Disallow guest CPUID lookups when IRQs are disabled")
Signed-off-by: Kai Huang <kai.huang@intel.com>
Link: https://patch.msgid.link/20260604011106.315176-1-kai.huang@intel.com
[sean: add Fixes, Kai is too polite :-)]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c

index fd3b02575cd0de185feccc53427966ae1099bfc9..591d2294acd754de3899197b2220ddea1f944eb5 100644 (file)
@@ -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>