Fix build with INVARIANT_SUPPORT enabled but not INVARIANTS.
Reported by: "Matthew D. Fuller" <fullermd@over-yonder.net>
This commit is contained in:
parent
3449b15aa2
commit
c64bc3a076
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253047
@ -704,6 +704,10 @@ _rm_runlock_debug(struct rmlock *rm, struct rm_priotracker *tracker,
|
||||
#endif
|
||||
|
||||
#ifdef INVARIANT_SUPPORT
|
||||
#ifndef INVARIANTS
|
||||
#undef _rm_assert
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Note that this does not need to use witness_assert() for read lock
|
||||
* assertions since an exact count of read locks held by this thread
|
||||
|
Loading…
Reference in New Issue
Block a user