All the places using KASSERT(9) include <sys/systm.h> and not libkern.h.
Shouldn't we recommend that? Index: KASSERT.9 =================================================================== RCS file: /cvs/src/share/man/man9/KASSERT.9,v retrieving revision 1.1 diff -u -p -r1.1 KASSERT.9 --- KASSERT.9 19 Apr 2018 22:46:21 -0000 1.1 +++ KASSERT.9 9 May 2019 20:49:03 -0000 @@ -36,7 +36,7 @@ .Nm CTASSERT .Nd kernel assert library routines .Sh SYNOPSIS -.In lib/libkern/libkern.h +.In sys/systm.h .Ft "void" .Fn assert "CONDITION" .Ft "void"
