Page MenuHomeFreeBSD

linux: Fix some problems with header pollution
ClosedPublic

Authored by markj on May 13 2026, 12:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 4, 12:24 AM
Unknown Object (File)
Thu, Jun 18, 5:34 AM
Unknown Object (File)
Wed, Jun 17, 8:09 AM
Unknown Object (File)
Thu, Jun 11, 11:42 PM
Unknown Object (File)
Jun 4 2026, 1:00 AM
Unknown Object (File)
May 31 2026, 5:50 AM
Unknown Object (File)
May 27 2026, 12:09 AM
Unknown Object (File)
May 26 2026, 12:28 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.