It contains assert-related definitions previously provided by sys/systm.h. The new header is leaner than whole systm.h. Include kassert.h from systm.h for compatibility.
vm/vm_extern.h: use sys/kassert.h instead of fatty sys/systm.h.
Differential D34089
Introduce sys/kassert.h kib on Jan 29 2022, 4:06 AM. Authored by Tags None Referenced Files
Details It contains assert-related definitions previously provided by sys/systm.h. The new header is leaner than whole systm.h. Include kassert.h from systm.h for compatibility. vm/vm_extern.h: use sys/kassert.h instead of fatty sys/systm.h.
Diff Detail
Event TimelineComment Actions I copied license from systm.h, but clearly UCB has no relations to this relatively modern stuff at all. Not sure what to do there.
Comment Actions There is only one line copied verbatim from UCB systm.h: extern const char *panicstr; /* panic message */ and two lines with similar content: void panic(const char *, ...) dead2 printflike(1, 2); I believe that this file should get a new copyright which I would date 1999 since that is when most of what is carried over here was first added to it (see 5526d2d920eb17b150). Comment Actions Am I right that you are suggesting to assign copyright to Eivind Eklund <eivind@FreeBSD.org> ? Comment Actions Eivind Eklund was the person that first added KASSERT which was the start of what probably should have been called kassert.h. Many others added to it over time probably putting more effort into than he did. But I am inclined to give him credit for starting the ball rolling. He was an active committer from February 1997 until June 2005 (461 base, 69 ports, 26 doc). I note that he still has a freefall account. Comment Actions Assign sys/kassert.h copyright to eivind, as suggested by mckusick. The 3 clause BSD license is kept for now, might be changed if eivind reply [he does not have phab account]. Comment Actions git blame shows maybe 10 people write this code, maybe more if we look at the whole history. tl;dr: There are no good choices here, but Eivind is likely the least bad as the initial mover.
|