Page MenuHomeFreeBSD

linux: Fix some problems with header pollution
ClosedPublic

Authored by markj on May 13 2026, 12:41 AM.
Tags
None
Referenced Files
F159257694: D56982.diff
Thu, Jun 11, 11:42 PM
Unknown Object (File)
Thu, Jun 4, 1:00 AM
Unknown Object (File)
Sun, May 31, 5:50 AM
Unknown Object (File)
Wed, May 27, 12:09 AM
Unknown Object (File)
Tue, May 26, 12:28 PM
Unknown Object (File)
Sun, May 24, 8:09 PM
Unknown Object (File)
Sat, May 23, 2:19 PM
Unknown Object (File)
Thu, May 21, 12:20 PM
Subscribers

Details

Summary
  • Avoid including sys/proc.h in linux_vdso_gtod.c. It's not needed, but the implicit inclusion of sys/param.h via sys/ucred.h->bsm/audit.h was bringing in some required definitions.
  • Include a couple of required headers: sys/time.h (for struct bintime), and limits.h (for INT_MAX).
  • Move some helpers from linux.h, which depend on sys/param.h for NODEV, to the one CU where they're actually used.

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 13 2026, 12:51 AM

Does this let us take anything out of badfiles.inc?

In D56982#1305794, @imp wrote:

Does this let us take anything out of badfiles.inc?

No, this is a step towards landing D56993, which fixes a problem that caused me a bunch of pain a while ago.

This revision was automatically updated to reflect the committed changes.