git: 0aaa95ae0280 - main - vmm: Add an include to vmm_ktr.h for vm_name()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Jan 2026 23:31:34 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=0aaa95ae02803ba0195c5da695ffbb17a79135bc
commit 0aaa95ae02803ba0195c5da695ffbb17a79135bc
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-01-08 23:29:06 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-01-08 23:29:06 +0000
vmm: Add an include to vmm_ktr.h for vm_name()
Required when KTR is configured.
Remove the pcpu.h include while here, as it seems to be unneeded.
Reported by: Jenkins
Fixes: 5f13d6b60740 ("vmm: Move common accessors and vm_eventinfo into sys/dev/vmm")
---
sys/dev/vmm/vmm_ktr.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/dev/vmm/vmm_ktr.h b/sys/dev/vmm/vmm_ktr.h
index 20370a229530..afd9831e4225 100644
--- a/sys/dev/vmm/vmm_ktr.h
+++ b/sys/dev/vmm/vmm_ktr.h
@@ -30,7 +30,9 @@
#define _VMM_KTR_H_
#include <sys/ktr.h>
-#include <sys/pcpu.h>
+#ifdef KTR
+#include <dev/vmm/vmm_vm.h>
+#endif
#ifndef KTR_VMM
#define KTR_VMM KTR_GEN