The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=72ab129799a231e322b119de3f9c1263e76527b8

commit 72ab129799a231e322b119de3f9c1263e76527b8
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-05-16 19:27:40 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-05-16 21:40:31 +0000

    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
---
 sys/amd64/amd64/genassym.c | 3 ---
 sys/i386/i386/genassym.c   | 3 ---
 2 files changed, 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>

Reply via email to