git: 71dd4e041e9e - stable/15 - amd64: Fix sys/pcpu.h usage in vmm_host.h and md_var.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Feb 2026 18:04:11 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=71dd4e041e9ecbc010c051b9a9903ffe05f43f0f
commit 71dd4e041e9ecbc010c051b9a9903ffe05f43f0f
Author: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
AuthorDate: 2026-01-24 01:29:00 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-02-09 18:03:41 +0000
amd64: Fix sys/pcpu.h usage in vmm_host.h and md_var.h
Include sys/pcpu in vmm_host.h as its structs and functions are used
there, and add a forward declaration of struct pcpu to md_var.h as it
is used in some function prototypes.
Reviewed by: corvink, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D51550
(cherry picked from commit 202e3109a9d6699cf78e83f9047cefeb07659767)
---
sys/amd64/include/md_var.h | 1 +
sys/amd64/vmm/vmm_host.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h
index b6d8c469cdf6..19eab48168f7 100644
--- a/sys/amd64/include/md_var.h
+++ b/sys/amd64/include/md_var.h
@@ -58,6 +58,7 @@ extern vm_paddr_t KERNend;
extern bool efi_boot;
struct __mcontext;
+struct pcpu;
struct savefpu;
struct sysentvec;
diff --git a/sys/amd64/vmm/vmm_host.h b/sys/amd64/vmm/vmm_host.h
index eebb794843b6..adca53271448 100644
--- a/sys/amd64/vmm/vmm_host.h
+++ b/sys/amd64/vmm/vmm_host.h
@@ -29,6 +29,8 @@
#ifndef _VMM_HOST_H_
#define _VMM_HOST_H_
+#include <sys/pcpu.h>
+
#ifndef _KERNEL
#error "no user-serviceable parts inside"
#endif