Date: Sat, 24 Jan 2026 01:54:48 +0000 From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> Subject: git: 202e3109a9d6 - main - amd64: Fix sys/pcpu.h usage in vmm_host.h and md_var.h Message-ID: <69742668.241e8.20d4c2f2@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=202e3109a9d6699cf78e83f9047cefeb07659767 commit 202e3109a9d6699cf78e83f9047cefeb07659767 Author: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> AuthorDate: 2026-01-24 01:29:00 +0000 Commit: Mark Johnston <markj@FreeBSD.org> 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" #endifhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69742668.241e8.20d4c2f2>
