Page MenuHomeFreeBSD

linux: Fix some problems with header pollution
ClosedPublic

Authored by markj on Wed, May 13, 12:41 AM.
Tags
None
Referenced Files
F157045448: D56982.diff
Mon, May 18, 2:56 AM
F156987408: D56982.diff
Sun, May 17, 8:00 PM
F156971616: D56982.id177866.diff
Sun, May 17, 5:33 PM
F156971578: D56982.id177866.diff
Sun, May 17, 5:32 PM
Unknown Object (File)
Sat, May 16, 11:40 PM
Unknown Object (File)
Fri, May 15, 12:47 PM
Unknown Object (File)
Fri, May 15, 10:26 AM
Unknown Object (File)
Thu, May 14, 8:11 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.Wed, May 13, 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.