From 57c91a09d8922106e5393b74c93003e798e2df5d Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 22 Jan 2005 21:14:21 +0000 Subject: [PATCH] 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 --- sys/kern/subr_witness.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 47f1b55f9d0..bc3ed2676f1 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -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) -- 2.45.2