Per overwhelming sentiment in the code review, use FEATURE instead.
Differential Revision: https://reviews.freebsd.org/D3488 MFC After: 2 days
This commit is contained in:
parent
fd449cdf1e
commit
3f27281613
@ -119,12 +119,8 @@ SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0,
|
||||
|
||||
/* Want to avoid defining INVARIANTS if not already defined */
|
||||
#ifdef INVARIANTS
|
||||
static int invariants = 1;
|
||||
#else
|
||||
static int invariants = 0;
|
||||
FEATURE(invariants, "Kernel compiled with INVARIANTS, may affect performance");
|
||||
#endif
|
||||
SYSCTL_INT(_debug, OID_AUTO, invariants, CTLFLAG_RD, &invariants, 0,
|
||||
"Kernel compiled with invariants");
|
||||
|
||||
/*
|
||||
* This ensures that there is at least one entry so that the sysinit_set
|
||||
|
Loading…
x
Reference in New Issue
Block a user