Re: vnode_if.h not found / make buildkernel on FreeBSD/HEAD-16

From: Thierry Thomas <thierry_at_freebsd.org>
Date: Sat, 16 May 2026 21:15:43 UTC
Le sam. 16 mai 26 à 21:31:18 +0200, Konstantin Belousov <kostikbel@gmail.com>
 écrivait :

> On Sat, May 16, 2026 at 09:03:33PM +0200, Dag-Erling Smørgrav wrote:

> > kib's 1d5e4020e36e added #include <sys/vnode.h>, which in turn includes
> > "vnode_if.h" to sys/mount.h.  This shouldn't be a problem as the kernel
> > build system knows how to generate vnode_if.h, but apparently it doesn't
> > realize that this is needed (genassym is a build tool, so it is compiled
> > very early).  Presumably this was a clean build?
>
> I do not see why sys/mount.h is needed by genassym.c.
>
> commit fe0f116bd3a5115813c4c3ba4a1546d09b5e73b1
> Author: Konstantin Belousov <kib@FreeBSD.org>
> Date:   Sat May 16 22:27:40 2026 +0300
> 
>     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.
>
>     Fixes:  1d5e4020e36e1cc9e906200c9c3c784ef43d977e

Thanks, problem fixed!
-- 
Th. Thomas.