From nobody Thu Jun 20 17:53:50 2024 X-Original-To: dev-commits-src-all@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 4W4p5C00jYz5PC8Y; Thu, 20 Jun 2024 17:53:51 +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 4W4p5B58nyz4xyn; Thu, 20 Jun 2024 17:53:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718906030; 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=hP2rRxPuYLKjFDsPylaHnNRy9RBdGxtNgS7rdpHDRQk=; b=dkwNx6ZmNKoYXYl92n9QFk212p6jtQQNmaYjz7IUT4fuOjGqNj5IAKFV+tIO06IoTqLWD0 /+H7j4jRrx/7ppWsCvcX2RTAG6ql8wUDQxM0bgvSAmhXVXCxAAgwEKG31NgVHmU5how+m/ OuaOPQ9ST0Kf5rhJ2dLaz9jW2nwFgPUk4XoOV+Yes3LC9qfQfZtC62X8mlinNsExI4cQDw hJAPIXwrvdMRTZ+uW08yoiU1sTyRepEDupRlBZVTN4K2bHfRIShukLC2beTNWG4Rms1Wi+ 6HluSUurAXYBv01Sr0zQ6gn9u2rimTbvjRW7RS9D/xKuBfSviJR/f9GVwRq/dA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718906030; a=rsa-sha256; cv=none; b=XRmPXWPHK8pERHI+7m7hr9ARjPd51mnrvNINLFdnZ7VjkMViaedP0zt4cT4oPDawd6IeyN YIWCV3jcdLQKlwEP+eQh1E1Nvzu939N1/4iaDBcK0g72DEFKS5XBCvs+TGtEd2Io8HJdl6 Dq1OmITPJdzTYYwiUoWC1mlJUXvT3FZI++H7OIm6niCMHs0ndkfMi2111hxr3Mhy2K1TPH 6c7CuxDum7i4CcBSLiAsQ6v3y3fLXgfh+XronVAQYUXf3Wpws+NNJ4MzcsxoZS8IXSuj+f zAxYERQBSRjQ9sUSCFZU1LwtSm22o1U8GpLOCRSErDQXQidVVOWVg8kLoW/nBw== 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=1718906030; 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=hP2rRxPuYLKjFDsPylaHnNRy9RBdGxtNgS7rdpHDRQk=; b=llQxPf9VnWmkOWRBxz+9d9ZdNOGHli6FTEUzgRcF7F9iAZS8KpyMC+e2MXITpTFVrF032c eLWw1KoHPijMo8J7jr4dbAy8Q1HCRdInDESWr48DxkVvbU745z2AILnZOew4ZUaZVGFhyi MeJnm3Ysx7nGN6hpKle4wJwKq+sducmQAX/++di8auuQByEBBX2NEyr/eLmbzKNZVoZENB BCnzPhLe3ir+U9T05Nd6ONmtkCFtyLB+fqXaUePe18sX6xHoWtzu4pN4vQu5OpNXT+SL4l 07pmszcxPu1FFLNK+WDZDnh2elwYZVve4JLGty3prPVHQ10pEIs9Dly7QpLMMg== 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 4W4p5B4nDLzZn0; Thu, 20 Jun 2024 17:53:50 +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 45KHro9C065890; Thu, 20 Jun 2024 17:53:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45KHrohH065887; Thu, 20 Jun 2024 17:53:50 GMT (envelope-from git) Date: Thu, 20 Jun 2024 17:53:50 GMT Message-Id: <202406201753.45KHrohH065887@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: 95a9594adce3 - main - mutex: add static qualifier to implementations previously declared static List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 95a9594adce38946168c6718819402d9adba9847 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=95a9594adce38946168c6718819402d9adba9847 commit 95a9594adce38946168c6718819402d9adba9847 Author: Gleb Smirnoff AuthorDate: 2024-06-20 17:53:31 +0000 Commit: Gleb Smirnoff 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;