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)
Tue, Mar 24, 10:48 PM
Unknown Object (File)
Fri, Mar 20, 7:35 AM
Unknown Object (File)
Fri, Mar 20, 3:29 AM
Unknown Object (File)
Thu, Mar 19, 7:12 PM
Unknown Object (File)
Wed, Mar 18, 6:33 AM
Unknown Object (File)
Tue, Mar 17, 3:48 PM
Unknown Object (File)
Sun, Mar 15, 11:24 AM
Unknown Object (File)
Sat, Mar 14, 6:06 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