summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-04 00:30:28 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-05 01:01:45 +0100
commitc8cd13d8e9853752de5756ab42a98e2d0baff0a9 (patch)
tree3da4d2d12fdb903b1a85e93cf9514e5d93f7ae67 /kern
parentd7348c94453d2662affecbb7605047044898ed19 (diff)
Fix ddb warnings introduced with -Wstrict-prototypes
Changed some ddb command functions to have the expected signature but not all of them due to the being difficult to inter-dependency between header files (for those just used cast). Message-Id: <Y7UO9HTfpZ8U0Nfy@mars>
Diffstat (limited to 'kern')
-rw-r--r--kern/lock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/lock.h b/kern/lock.h
index 2781a48a..2548409d 100644
--- a/kern/lock.h
+++ b/kern/lock.h
@@ -217,6 +217,8 @@ extern void lock_clear_recursive(lock_t);
#endif /* MACH_LDEBUG */
#define have_lock(l) (have_read_lock(l) || have_write_lock(l))
-void db_show_all_slocks(void);
+#if MACH_KDB
+extern void db_show_all_slocks(void);
+#endif /* MACH_KDB */
#endif /* _KERN_LOCK_H_ */