diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-05-16 19:27:40 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-05-16 21:40:31 +0000 |
| commit | 72ab129799a231e322b119de3f9c1263e76527b8 (patch) | |
| tree | 429d50ec62c4af47591dde6a136535367ca68230 | |
| parent | 755c1e039adfd68ecf4d5954e13fe54263c34a03 (diff) | |
x86: remove sys/mount.h from genassym.c
The header is not needed, and causes some issues with build because it
requires vnode_if.h generated due to transient dependency from vnode.h.
While there, remove unneeded explicit sys/cdefs.h and sys/param.h usage.
Reported and tested by: thierry
Fixes: 1d5e4020e36e ("vnode: add VIRF_KNOTE flag")
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
| -rw-r--r-- | sys/amd64/amd64/genassym.c | 3 | ||||
| -rw-r--r-- | sys/i386/i386/genassym.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c index 2716784ee871..875c536166d1 100644 --- a/sys/amd64/amd64/genassym.c +++ b/sys/amd64/amd64/genassym.c @@ -32,11 +32,9 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> #include "opt_hwpmc_hooks.h" #include "opt_kstack_pages.h" -#include <sys/param.h> #include <sys/systm.h> #include <sys/assym.h> #include <sys/bio.h> @@ -46,7 +44,6 @@ #include <sys/pmckern.h> #endif #include <sys/errno.h> -#include <sys/mount.h> #include <sys/mutex.h> #include <sys/socket.h> #include <sys/resourcevar.h> diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c index d4d80fbb38ac..1a31f6b3428c 100644 --- a/sys/i386/i386/genassym.c +++ b/sys/i386/i386/genassym.c @@ -32,12 +32,10 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> #include "opt_apic.h" #include "opt_hwpmc_hooks.h" #include "opt_kstack_pages.h" -#include <sys/param.h> #include <sys/systm.h> #include <sys/assym.h> #include <sys/bio.h> @@ -47,7 +45,6 @@ #endif #include <sys/proc.h> #include <sys/errno.h> -#include <sys/mount.h> #include <sys/mutex.h> #include <sys/socket.h> #include <sys/resourcevar.h> |
