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)
Sun, Mar 22, 3:08 PM
Unknown Object (File)
Tue, Mar 17, 2:56 PM
Unknown Object (File)
Tue, Mar 17, 6:45 AM
Unknown Object (File)
Mon, Mar 16, 9:45 PM
Unknown Object (File)
Sat, Mar 14, 10:38 PM
Unknown Object (File)
Sat, Mar 14, 10:33 PM
Unknown Object (File)
Sat, Mar 14, 11:43 AM
Unknown Object (File)
Sat, Mar 14, 11:36 AM
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 56743
Build 53631: 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–43

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.