[PATCH] Add MAXCPU as a kernel config option and quality discussion on this

Ryan Stone rysto32 at gmail.com
Fri Jul 8 19:26:31 UTC 2011


On Fri, Jul 8, 2011 at 2:22 PM, Peter Wemm <peter at wemm.org> wrote:
> Yes, having a default value for sizing cpuset_t does look harmful if a
> kld module tries to use them.  What is currently in the tree will
> silently fail by successfully compiling for kld modules that try to
> use anything affected by that.

Could we implicitly add something like MODULE_DEPEND(maxcpu, MAXCPU,
MAXCPU, MAXCPU); to every kld module so that we reject modules
compiled with the wrong MAXCPU value?  Maybe add it to DECLARE_MODULE
or something.


More information about the freebsd-arch mailing list