Page MenuHomeFreeBSD

sys/_{cpu,domain}set.h: don't require sys/param.h
ClosedPublic

Authored by brooks on Mar 21 2024, 11:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 8, 1:33 PM
Unknown Object (File)
Fri, Dec 5, 3:26 PM
Unknown Object (File)
Fri, Dec 5, 12:34 PM
Unknown Object (File)
Thu, Dec 4, 1:08 AM
Unknown Object (File)
Thu, Dec 4, 1:08 AM
Unknown Object (File)
Oct 29 2025, 1:32 PM
Unknown Object (File)
Oct 29 2025, 1:09 PM
Unknown Object (File)
Oct 29 2025, 1:09 PM
Subscribers
None

Details

Summary

Add machine/param.h for MAXCPU and MAXMEMDOM in the _KERNEL case of
sys/_cpuset.h and sys/_domainset.h, making them more self contained.

This eliminates the need to include sys/param.h before sys/cpuset.h and
sys/domainset.h.

Diff Detail

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

Event Timeline

brooks created this revision.

Alternatively we could require that consumers include sys/param.h and then only the the !RCTL case in sys/kern/kern_rctl.c needs changing, but this seems tidier.

This revision is now accepted and ready to land.Mar 22 2024, 3:17 AM