Compile in the kassert_panic() function with INVARIANT_SUPPORT
option, not INVARIANTS. The function is required if we want to load in a module that is compiled with INVARIANTS. Reviewed by: jhb Approved by: re (gjb)
This commit is contained in:
parent
f61d6c5a5b
commit
a0d20ecb94
@ -556,7 +556,7 @@ shutdown_reset(void *junk, int howto)
|
||||
/* NOTREACHED */ /* assuming reset worked */
|
||||
}
|
||||
|
||||
#if defined(WITNESS) || defined(INVARIANTS)
|
||||
#if defined(WITNESS) || defined(INVARIANT_SUPPORT)
|
||||
static int kassert_warn_only = 0;
|
||||
#ifdef KDB
|
||||
static int kassert_do_kdb = 0;
|
||||
|
@ -76,7 +76,7 @@ extern int vm_guest; /* Running as virtual machine guest? */
|
||||
enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV,
|
||||
VM_GUEST_VMWARE, VM_LAST };
|
||||
|
||||
#if defined(WITNESS) || defined(INVARIANTS)
|
||||
#if defined(WITNESS) || defined(INVARIANT_SUPPORT)
|
||||
void kassert_panic(const char *fmt, ...) __printflike(1, 2);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user