From nobody Mon Dec 16 14:45:05 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 4YBjQp0L0hz5hW5m; Mon, 16 Dec 2024 14:45:06 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBjQn5ppZz4c6p; Mon, 16 Dec 2024 14:45:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360305; 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=m/Jx3TeaH2cEFxLCOm6w7/jJezDoP2MSNXCsQ8ucsgE=; b=VQiQhEBHRviBEKyip/2CYK1ESQOkLquGc7hWsiK6ajxcpJdkUC50JmiwgDTB6Jgq86y5iv DfYL82c261eK2Vkjcr9FuJu3alhMQEX1uVad1UOyjnn05SvTK66dpy98rUh8UwGO8vXx3i 6Nz/NS80vsy3qRlYrw3fIW9Qy0jbzjrtxHooCoSxYySupkTKZTQ4E0x4jt69F7kisIZKy4 naDf2uETqtvWGyu0/iLWpI75kTtm2iOhhmFAJZrtroZVlmZ41cKKiiMQQ4bPLGw5nm7Vcq zSDWkq1vEXCe7LbwWAMUuZIjrCFtunaecwImLdLkQZMUslvdapYEdy+L2EJ5dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360305; 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=m/Jx3TeaH2cEFxLCOm6w7/jJezDoP2MSNXCsQ8ucsgE=; b=tVE13wJaQKXHnSu363NQUBDBkonpylOjeP/nynF3OW3dDNbmABsZXrzs9H/nn3L86NhBm4 DgH8BjRG0beybn11fNZUF2SIPEMW15EpLjdriQ3OWogPTuS2C5vwujU87b7Qaf9H06Ohss i+gjDNWbHImy1X2iPjBarj8Whx/4HvZujjhBCM9Cdtf8+V/FJjBouHUY9B79X6PvcJZRfo g9y09nJkFgIoI7DuNGTc1b+i2Gk/9Afltx5Hwv//pqScuyiftsVv3VPj+ZRLTFVIV5VgOK rO57kFWowc7/ky2Iqt06iwiKQbvUbY8euKvgfM9gwgW3oKe3RxVq0kE0QqAz6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734360305; a=rsa-sha256; cv=none; b=IrsNGTybBYproMwDki91LBGXJpta9EZ+obESWArFazQ5uzPWgTX3haugbT3ykcXQ0EisIH XAHz4Go6XyHjibmMgICCwl2Bcz5XQSGL1BAsB2xSjsBqjSEHTneIMzmtkdQYMrhxCJ+dof 8ZF4INCbISuj8e7WtyYWLRgCk6oT3/RnShZHc3m1tc9ReMGACvBLEeb6t0njHiOk+Ep1gu 1rx2DrXVA03ABR6J5gDwN3xdH0yB3Aya/ZCVBw+vGuUuK8MkkH2Epc1ZksGpvE/blu3aIj WS+8pcawKbFxovXvSIgo7W5ZhLMRrnrxS6RhWV9NGUWj6GDwJQ8KKFPCFfPDSg== 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 4YBjQn5RHvzxkX; Mon, 16 Dec 2024 14:45:05 +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 4BGEj5hu051015; Mon, 16 Dec 2024 14:45:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BGEj554051012; Mon, 16 Dec 2024 14:45:05 GMT (envelope-from git) Date: Mon, 16 Dec 2024 14:45:05 GMT Message-Id: <202412161445.4BGEj554051012@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 9dc5b3dbb063 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 9dc5b3dbb063f55543ff8a0619eee2e294fb7dc5 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=9dc5b3dbb063f55543ff8a0619eee2e294fb7dc5 commit 9dc5b3dbb063f55543ff8a0619eee2e294fb7dc5 Author: Olivier Certner AuthorDate: 2024-07-19 15:23:45 +0000 Commit: Olivier Certner CommitDate: 2024-12-16 14:42:26 +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 --- 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 ae0ec44fd7a6..42c435399132 100644 --- a/sys/sys/refcount.h +++ b/sys/sys/refcount.h @@ -64,7 +64,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)); }