From nobody Thu Jan 16 18:08:03 2025 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 4YYrSh3Yfdz5kkx6; Thu, 16 Jan 2025 18:08:04 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YYrSh0JNjz3RKc; Thu, 16 Jan 2025 18:08:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050884; 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=81ky+eIuB2NJiY95GpvXc4e85tuDY3er5xsQDWBpmtw=; b=lBxQ0vaFGuHTSGxVJnpXMqeDBzfGXSj7OLsq+C4In3BWNcdklE0QeMngN7UN5XDPtWpMSH VdDu2kDjuyy4IXLSd4I68AlUdBpaE9bVtiLhBQu8lyyhFXIeQNqoDq0rnzQm+rTYSV6Qlg TZYOs/Pl3GYx8TiIaJqnpsrexc6INrVAP3UFvp1x6sCZoWj95EIfynu/mKARo5w9uRqINW HUuCpVe6VZzg1mgS/tOyR6ndoKVuLu5HehjCxU09rv14cuUwy7MLjJlhkvGoEItS0idoDV sJGf8faqRcdBkGr8UP0u+j6JY1ukM5KlfyGcmO45nPdAgrBjjZcp1Q0/lC6iMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050884; 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=81ky+eIuB2NJiY95GpvXc4e85tuDY3er5xsQDWBpmtw=; b=EzNnuKY9Q5HuK6EigevNcOJGoSaLSxK1ZywlASGeZ/C3ork4o39jKAHNdkZlS/subXBQdE JkF07z4CEzTuB4mZZ2wX8VU7MsablStNQbEJo3lMKw0OZyYt57n795LTlkUlqqEuRyFo3+ OULV94/XUY4tnVuUrVuJi7EoytTfKbMEcN/0L41B3TmY5eTicYpMD4Ra+c7q8anc3CEEf2 dKJJKtMo7M8LVSmpAp+JFeGZA2MMS+2zpb6DRYBBEs+IyCG6T3CmblEsDkeQqIm8+OSuPL 386lGBu/ZmEA8DuqCP/1+ah9sjbmK5aA9QxjDZlAlRcnPOPjYXDJoWs7GtCtZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737050884; a=rsa-sha256; cv=none; b=Duhkm4mrS/L4S5A/arJsKj8wxfATrbcn+BBvMA8d0cvhf5v3wFu2vUFQeGGmUgJ8HC6JHI Zy2TxbNbu/azxsTUH9ghV8i4PMtaBcR9Ud9UCHDOi7LmxQwyfUtDRgcJHIreHboYsnm4hr 43y6yQBKZt3chOP58U8CC7te94HdoRGgpsXkXHjATdU+OC+dqqgHKWpfnSdvJSzHclueYV +da9cP7iUY6jkJyEm8yr4NzI2kkNDpmX61qoJrhYxw0hSTc312EtzBKipz61uJV9MxLaRT kz9nvC30FSQLz0i3m7W6JRD8otdEx5VDyvm5f8X4k9g63Z7IBBFtC4aIuDilBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YYrSg6wBQzk0w; Thu, 16 Jan 2025 18:08:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50GI83g3091205; Thu, 16 Jan 2025 18:08:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50GI83rJ091202; Thu, 16 Jan 2025 18:08:03 GMT (envelope-from git) Date: Thu, 16 Jan 2025 18:08:03 GMT Message-Id: <202501161808.50GI83rJ091202@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 2e866a1ea99e - stable/14 - refcount: Constify refcount_load() 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2e866a1ea99ebc14568a8d8ded8d88958a1f011a Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=2e866a1ea99ebc14568a8d8ded8d88958a1f011a commit 2e866a1ea99ebc14568a8d8ded8d88958a1f011a Author: Olivier Certner AuthorDate: 2024-07-19 15:23:45 +0000 Commit: Olivier Certner CommitDate: 2025-01-16 18:06:53 +0000 refcount: Constify refcount_load() Reviewed by: markj Approved by: markj (mentor) MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46888 (cherry picked from commit 9dc5b3dbb063f55543ff8a0619eee2e294fb7dc5) --- sys/sys/refcount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/refcount.h b/sys/sys/refcount.h index 212e8e516271..58d4ec573931 100644 --- a/sys/sys/refcount.h +++ b/sys/sys/refcount.h @@ -65,7 +65,7 @@ refcount_init(volatile u_int *count, u_int value) } static __inline u_int -refcount_load(volatile u_int *count) +refcount_load(volatile const u_int *count) { return (atomic_load_int(count)); }