From aa62d30d46f78c2e3fadad28a180bf84c6f51ae1 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 11 Oct 2022 12:51:55 -0600 Subject: [PATCH] sys/_pv_entry.h: Include sys/param.h sys/param.h is required for this file because it uses howmany() which is defined there. For the kernel, this works today because of namespace polllution. However, user land programs, like qemu, can include machine/pmap.h without having included sys/param.h (since it wasn't required before). Sponsored by: Netflix Reviewed by: tsoome, jhb Differential Revision: https://reviews.freebsd.org/D36927 --- sys/sys/_pv_entry.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/_pv_entry.h b/sys/sys/_pv_entry.h index 3cd0d9c687f6..ec3ea24a21a5 100644 --- a/sys/sys/_pv_entry.h +++ b/sys/sys/_pv_entry.h @@ -36,6 +36,8 @@ #ifndef __SYS__PV_ENTRY_H__ #define __SYS__PV_ENTRY_H__ +#include + struct pmap; /*