From nobody Thu Jun 20 17:53:49 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W4p595BV8z5PC8T; Thu, 20 Jun 2024 17:53:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W4p594h3Gz4y4f; Thu, 20 Jun 2024 17:53:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718906029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z+yPIhNOynaxDjNBsiT+vmjfx9HQs2aMGsbRMKUQ2mc=; b=p+9JWHSn6kc8z0unGbS7C5TxpGWn+DpW2n3y54gyhcDDK1zKG00xQhT/sQnmIbVrRfomhi kplcc3C4g+7NDjD03+C3VZfy4PCDimrIbC1tEwIE/pkuUwYokuFTudsTUaQsR55stgl+IM DsZy0gF24PoN79OLzd/mbmb5b6aC0/CM4kAodQiPSx5qE2ukl9t0Osdhvv6jazm58YrWGH OLUi7byqjjVXIegNdjY2IH+7V4CdgSMX78ticGpkNDwxsDkcSDzEU3tmCM5QSKGBL2dwwD qBcwGw0VztQ0D+iDUEmdJ0ladKpha3fdr/YwXBN9rsS78tMSYx+avLePl/sI9Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718906029; a=rsa-sha256; cv=none; b=Tu+PLARtIgDc6X6bM0+h5TvCElXKdARuKPO2ubdrnqmpmI66fecoMxqCBDMBKCYRa2jxlp /IWr16oaC5xLhFJGKJYSE8ReQD+nGQXiFIWdHv3K0cBgJQDsfHB7EzTvDhztAVRW11bl90 KIzBTG2Yi1GtZvoqpYhphjGW8SC4S1dJWiHcLMISVNUS1BB+SPr/D3pyWCDrfLwuTjjbcA DUyUBpF9sIzaM57ZGYyKCygLvePglZugrYjMmFCsqN1v7NqLpWsp4ej6boHZuwDa723Bis 3CIePhin0ytcsNQmqDh1Tml23ZO8T6dYlK9vNmgNgC/1bZo7IsFaw10xt/4Ieg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718906029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z+yPIhNOynaxDjNBsiT+vmjfx9HQs2aMGsbRMKUQ2mc=; b=IzevpCzBACWigYSZYe+QCEozhjcPpYX7VTxMyVSHSCR4aJP90Pf9j3Aj65OXvI/NBnkg5X vXeguijxDbP1vK5KKsE4uZg1XvFAvX0ONrJI+MJMKq8m8ecf1j9If7zlot76LSDEQj06nS SkCEJ8OGro07WVBb6ji6v9LaQyQosyA4YmQfbvYxWMOV4weyiocSNVTXQ75sDmlmLcBaEc Zp+uwkxTa4TiSpbndeJFxFO9QcBv5gwXu9kFpy0ArRXSb/7wXsG80JTxsZ4SHFGbIHLsY4 eWOmEZSdW8WC/nQO/W6bGI72mdV/yVu8BUeTTyj4iUX0TQ1w0vnvHe3KhkTkqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W4p5948SWzb3r; Thu, 20 Jun 2024 17:53:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45KHrnJS065836; Thu, 20 Jun 2024 17:53:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45KHrnjw065833; Thu, 20 Jun 2024 17:53:49 GMT (envelope-from git) Date: Thu, 20 Jun 2024 17:53:49 GMT Message-Id: <202406201753.45KHrnjw065833@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: aaef18e6ae28 - main - rwlock: add static qualifier to implementations previously declared static List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aaef18e6ae2809f4b399e9da419699ef570a71f4 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=aaef18e6ae2809f4b399e9da419699ef570a71f4 commit aaef18e6ae2809f4b399e9da419699ef570a71f4 Author: Gleb Smirnoff AuthorDate: 2024-06-20 17:53:31 +0000 Commit: Gleb Smirnoff 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;