From nobody Fri Oct 04 08:45:22 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 4XKhvR0z07z5Y99q; Fri, 04 Oct 2024 08:45:23 +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 4XKhvR0PDpz47nZ; Fri, 4 Oct 2024 08:45:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728031523; 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=RebegqqSwgkGXVLX/cWYtW3hcAI3t4u3o78UiP63qT4=; b=f2Y/jhR1GXG53gnPbqTcpzJxhYguP5aVtOW6Z5iQAbVUFzuRwOAL9pnO63cDdJniajCjyB 4m1eaPXMnhjx4CWBKMSvpMca2RJ8FpwZxgvpcVI/4+b0u+PmjDsr1bXsGbFmavzy0d3nQN XDplr+iVDxVjW0GIHWvjMDHWZwBpISByxlXuKVzkUV9O5wiFhTHTkJXgjEjghK3MA3EwqJ XYqRp/6TM/ZmK1CsUn+pfRdn5dUAwQvm+/V2T4wD9nqvzozZVfDZ198YNO4R36HVsMLtBJ 5WxqCc8VYm+cVHy58r9ANqrutSqON/lIWIchZmqQz3wVbdn5uQw5w+wXI8q0zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728031523; 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=RebegqqSwgkGXVLX/cWYtW3hcAI3t4u3o78UiP63qT4=; b=Q9dhRJh/s5/9P5z1CN3EClsgwmnFMsd+a6qkSIxRu+J10wneOXJSoAw+0MGV9vukmLknrc dLpmmxtIZA8jA/OM1rdcoPzZ7YDu7LUgzjkMBnhgpoOQIeC+W6zRVk2+3MJYu3TtaU2Q4y u/lshNQiDTNZzNQ5+qrMwNI1dsYOytDHx2HiXkwW3GPCNnbsR2PSHpN+hGG1vvvHEiqXpX MmhLVc6xO+HdDPA0Hok9CzEdkS4qvXueSGycwMAlrqOaf1jZ9iLY+NLtj2x2O438JGzkm1 leBzmsQbYzd2jcHlnnlxOsWwkiqtpiKZdt56kygzZLyYEc5tVFbIIcwzji8Tlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728031523; a=rsa-sha256; cv=none; b=xjpA49xOJ1leUiZuOMH7L7Rn7PowDVWTdwbpeu/DOHSEEolOLabF3J6iEBU1FkJaJGjCXS xpw8i7wfYvbLBhnqeLr3GTAmMBaCO/0i+RXYXcnIZv6K7wgl5k1o6dVhdBZ8yFypIqZK+I 1OuJfj70hqN1Dw2ip5wCDQxYfnP51qEb+bo8kHVHmfWcByEua72u/PjmHf6/41orQC9Xb5 EwuRsT4a3wKKkYgk/YzxPGOee72cu1nJycnAu5fmTGudBFoBYD26HVk/e+/h+TD6lS4V+3 RC/m9d27sNMjJ0L4Fq0FdvQEvS8JpSvb3cL8KlRWK0EsP3QDQqj39/Z1oK1ezA== 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 4XKhvQ6b5RzRXQ; Fri, 4 Oct 2024 08:45:22 +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 4948jMnu020771; Fri, 4 Oct 2024 08:45:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4948jMOs020768; Fri, 4 Oct 2024 08:45:22 GMT (envelope-from git) Date: Fri, 4 Oct 2024 08:45:22 GMT Message-Id: <202410040845.4948jMOs020768@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: 6bffebee7e57 - stable/13 - bitset: Fix __BIT_FFS_AT()'s herald comment 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/13 X-Git-Reftype: branch X-Git-Commit: 6bffebee7e576553006b108ed7e8518164101502 Auto-Submitted: auto-generated The branch stable/13 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=6bffebee7e576553006b108ed7e8518164101502 commit 6bffebee7e576553006b108ed7e8518164101502 Author: Olivier Certner AuthorDate: 2024-06-03 19:22:12 +0000 Commit: Olivier Certner CommitDate: 2024-10-04 08:44:18 +0000 bitset: Fix __BIT_FFS_AT()'s herald comment The manual page is correct though. No functional change. Reviewed by: emaste Approved by: emaste (mentor) MFC after: 3 days Event: Kitchener-Waterloo Hackathon 202406 Sponsored by: The FreeBSD Foundation (cherry picked from commit f3ab0d86e8070c73bf2e2852341f8e5c709f5682) Approved by: emaste (mentor) --- sys/sys/bitset.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/sys/bitset.h b/sys/sys/bitset.h index 5ff2bb76a4ab..2e15df7de4dd 100644 --- a/sys/sys/bitset.h +++ b/sys/sys/bitset.h @@ -220,8 +220,9 @@ } while (0) /* - * Note that `start` and the returned value from __BIT_FFS_AT are - * 1-based bit indices. + * 'start' and 'end' are 0-based bit (runtime) indices. Note that, as for ffs(), + * the returned index is 1-based, 0 being reserved to indicate that no bits are + * set. */ #define __BIT_FFS_AT(_s, p, start) __extension__ ({ \ __size_t __i; \