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)
Thu, Nov 7, 1:12 AM
Unknown Object (File)
Fri, Nov 1, 11:38 AM
Unknown Object (File)
Thu, Oct 31, 10:26 AM
Unknown Object (File)
Sun, Oct 27, 10:50 PM
Unknown Object (File)
Wed, Oct 23, 10:45 PM
Unknown Object (File)
Wed, Oct 23, 10:45 PM
Unknown Object (File)
Wed, Oct 23, 10:45 PM
Unknown Object (File)
Wed, Oct 23, 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 Not Applicable
Unit
Tests Not Applicable

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.