mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 15:15:01 +00:00
When DDB is not defined, don't implement witness_thread_has_locks() and
witness_proc_has_locks(), as they are unused, which results in a compiler error. This problem was introduced with the implementation of "show alllocks". Spotted by: Artem Kuchin <matrix at itlegion dot ru>
This commit is contained in:
parent
a8b16e8727
commit
5324bda309
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140637
|
@ -1720,6 +1720,7 @@ witness_list_lock(struct lock_instance *instance)
|
|||
instance->li_line);
|
||||
}
|
||||
|
||||
#ifdef DDB
|
||||
static int
|
||||
witness_thread_has_locks(struct thread *td)
|
||||
{
|
||||
|
@ -1738,6 +1739,7 @@ witness_proc_has_locks(struct proc *p)
|
|||
}
|
||||
return (0);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
witness_list_locks(struct lock_list_entry **lock_list)
|
||||
|
|
Loading…
Reference in a new issue