The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=95a9594adce38946168c6718819402d9adba9847
commit 95a9594adce38946168c6718819402d9adba9847 Author: Gleb Smirnoff <gleb...@freebsd.org> AuthorDate: 2024-06-20 17:53:31 +0000 Commit: Gleb Smirnoff <gleb...@freebsd.org> CommitDate: 2024-06-20 17:53:31 +0000 mutex: add static qualifier to implementations previously declared static --- sys/kern/kern_mutex.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 92be72546b46..90361b23c09a 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -180,7 +180,7 @@ struct mtx __exclusive_cache_line Giant; static void _mtx_lock_indefinite_check(struct mtx *, struct lock_delay_arg *); -void +static void assert_mtx(const struct lock_object *lock, int what) { @@ -202,21 +202,21 @@ assert_mtx(const struct lock_object *lock, int what) mtx_assert((const struct mtx *)lock, what); } -void +static void lock_mtx(struct lock_object *lock, uintptr_t how) { mtx_lock((struct mtx *)lock); } -void +static void lock_spin(struct lock_object *lock, uintptr_t how) { mtx_lock_spin((struct mtx *)lock); } -uintptr_t +static uintptr_t unlock_mtx(struct lock_object *lock) { struct mtx *m; @@ -227,7 +227,7 @@ unlock_mtx(struct lock_object *lock) return (0); } -uintptr_t +static uintptr_t unlock_spin(struct lock_object *lock) { struct mtx *m; @@ -239,7 +239,7 @@ unlock_spin(struct lock_object *lock) } #ifdef KDTRACE_HOOKS -int +static int owner_mtx(const struct lock_object *lock, struct thread **owner) { const struct mtx *m; @@ -1314,7 +1314,7 @@ mtx_wait_unlocked(struct mtx *m) } #ifdef DDB -void +static void db_show_mtx(const struct lock_object *lock) { struct thread *td;