Page MenuHomeFreeBSD

sys/acl.h: reduce header pollution
ClosedPublic

Authored by brooks on Mar 21 2024, 11:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 9 2024, 4:16 AM
Unknown Object (File)
Nov 22 2024, 3:15 PM
Unknown Object (File)
Nov 8 2024, 7:11 PM
Unknown Object (File)
Nov 7 2024, 1:12 AM
Unknown Object (File)
Nov 1 2024, 11:38 AM
Unknown Object (File)
Oct 31 2024, 10:26 AM
Unknown Object (File)
Oct 27 2024, 10:50 PM
Unknown Object (File)
Oct 23 2024, 10:45 PM
Subscribers
None

Details

Summary

In commit d1dfd921774f0 the acl allocator was switch from malloc(9) to
uma(9) and done in a way required vm/uma.h and prerequisites. This added
considerable header pollution to sys/sysproto.h. The uma details were
hidden in commit b998d381f2868, but the header pollution remained. Add
an include of sys/malloc.h as required by commit ae1add4e55214 to keep
the header self contained.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 56734
Build 53622: arc lint + arc unit

Event Timeline

brooks created this revision.

Also, to be really self-contained, the header needs at least either sys/_types.h or sys/types.h (not sure which).

sys/sys/acl.h
39

Can we limit this to _KERNEL?

  • Put ifdef _KERNEL around sys/malloc.h include
  • Add sys/types.h and sys/_null.h
This revision is now accepted and ready to land.Mar 23 2024, 6:56 AM
This revision was automatically updated to reflect the committed changes.
brooks marked an inline comment as done.