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 25, 6:36 PM
Unknown Object (File)
Fri, Jul 24, 8:50 AM
Unknown Object (File)
Thu, Jul 23, 5:56 AM
Unknown Object (File)
Wed, Jul 22, 4:47 AM
Unknown Object (File)
Tue, Jul 21, 7:39 AM
Unknown Object (File)
Sat, Jul 18, 7:17 PM
Unknown Object (File)
Wed, Jul 15, 7:21 AM
Unknown Object (File)
Wed, Jul 15, 7:21 AM
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.