[PATCH] Fix NKPT kernel config option

Robert Millan rmh at debian.org
Fri Sep 2 05:23:17 UTC 2011


2011/9/1 John Baldwin <jhb at freebsd.org>:
> In general we force the relevant C files to use opt_*.h includes and avoid
> nested includes of those in headers.

With this approach I can't trust that this feature will do the right
thing.  I would rather modify pmap.h by hand than run the unnecessary
risk.

> Do you know of any C files that do
> are using NKPT (or values derived from it) without including opt_pmap.h?

Many.  To obtain a full list, I suggest you put something like:

#ifdef NKPT
#warning nkpt:good
#else
#warning nkpt:bad
#endif

in pmap.h and build with "WERROR="

-- 
Robert Millan


More information about the freebsd-current mailing list