svn commit: r367692 - head/sys/sys

John Baldwin jhb at FreeBSD.org
Tue Nov 17 22:18:10 UTC 2020


On 11/14/20 2:34 PM, Warner Losh wrote:
> true, but a version bump forces that and versions are cheap enough...

Strictly speaking, version bumps don't force anything to recompile, they
just ensure that newer modules won't load on older kernels.  In this case,
the change to sys/ucred.h will result in sys/ucred.h's mtime changing so
that any kernel modules being built via NO_CLEAN=yes will rebuild ok.

I'm not quite sure where this mantra that version bumps force rebuilds
came from, but they don't.  It's true that since it lives in <sys/param.h>
and most things include that, it mostly forces a rebuild, but that's
mostly a side effect, not due to explicit magic around __FreeBSD_version.

-- 
John Baldwin


More information about the svn-src-head mailing list