Page MenuHomeFreeBSD

linux: Fix some problems with header pollution
ClosedPublic

Authored by markj on May 13 2026, 12:41 AM.
Tags
None
Referenced Files
F171197792: D56982.diff
Wed, Sep 9, 11:00 AM
Unknown Object (File)
Sat, Sep 5, 2:55 PM
Unknown Object (File)
Fri, Sep 4, 3:58 PM
Unknown Object (File)
Fri, Sep 4, 3:25 AM
Unknown Object (File)
Sun, Aug 23, 10:28 AM
Unknown Object (File)
Thu, Aug 13, 12:07 AM
Unknown Object (File)
Thu, Aug 13, 12:06 AM
Unknown Object (File)
Wed, Aug 12, 7:27 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 73063
Build 69946: arc lint + arc unit

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.