git: aaef18e6ae28 - main - rwlock: add static qualifier to implementations previously declared static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jun 2024 17:53:49 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=aaef18e6ae2809f4b399e9da419699ef570a71f4 commit aaef18e6ae2809f4b399e9da419699ef570a71f4 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2024-06-20 17:53:31 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2024-06-20 17:53:31 +0000 rwlock: add static qualifier to implementations previously declared static --- sys/kern/kern_rwlock.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index 28dddb950966..29767f09b304 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -157,14 +157,14 @@ LOCK_DELAY_SYSINIT(rw_lock_delay_init); #define __rw_assert(c, what, file, line) #endif -void +static void assert_rw(const struct lock_object *lock, int what) { rw_assert((const struct rwlock *)lock, what); } -void +static void lock_rw(struct lock_object *lock, uintptr_t how) { struct rwlock *rw; @@ -176,7 +176,7 @@ lock_rw(struct lock_object *lock, uintptr_t how) rw_wlock(rw); } -uintptr_t +static uintptr_t unlock_rw(struct lock_object *lock) { struct rwlock *rw; @@ -193,7 +193,7 @@ unlock_rw(struct lock_object *lock) } #ifdef KDTRACE_HOOKS -int +static int owner_rw(const struct lock_object *lock, struct thread **owner) { const struct rwlock *rw = (const struct rwlock *)lock; @@ -1524,7 +1524,7 @@ __rw_assert(const volatile uintptr_t *c, int what, const char *file, int line) #endif /* INVARIANT_SUPPORT */ #ifdef DDB -void +static void db_show_rwlock(const struct lock_object *lock) { const struct rwlock *rw;