rwlock: fix up compilation without KDTRACE_HOOKS after r324787

This commit is contained in:
Mateusz Guzik 2017-11-06 05:14:05 +00:00
parent 37f275860c
commit db520fdd46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325469

View File

@ -842,12 +842,12 @@ __rw_wlock_hard(volatile uintptr_t *c, uintptr_t v, uintptr_t tid,
struct lock_delay_arg lda;
#endif
#ifdef KDTRACE_HOOKS
uintptr_t state;
u_int sleep_cnt = 0;
int64_t sleep_time = 0;
int64_t all_time = 0;
#endif
#if defined(KDTRACE_HOOKS) || defined(LOCK_PROFILING)
uintptr_t state;
int doing_lockprof;
#endif