The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=202e3109a9d6699cf78e83f9047cefeb07659767
commit 202e3109a9d6699cf78e83f9047cefeb07659767 Author: Hans Rosenfeld <[email protected]> AuthorDate: 2026-01-24 01:29:00 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-01-24 01:29:45 +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 --- 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
