From nobody Fri Oct 04 08:45:43 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 4XKhvr0Z2mz5Y8rQ; Fri, 04 Oct 2024 08:45:44 +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 4XKhvq75Psz48sL; Fri, 4 Oct 2024 08:45:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728031544; 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=tezcUkJWP4FUphq58FqMaNOI5U4dCp3nrP0jAmiOad0=; b=oAkKigUxeFIN2gDn+WpZ6Tg+4qXUK8Vp0Es79f8fIMj09t5lqHh5wGI8NhXqec1jb0jE7c ltWQUFKXP6UAMDf7he2NSAvCxRBlIWtAYuYlDUKwYbLlMfJlsLqgfPwDjlGutyQzvEVjgf NFohRW79ex+G2AuHZ/mc5Nd/cdu8N1kBp0CNj9W3ilkK4r2i0ZKFF7xD9SEuvOS+H+gGm6 IW6jp2tsdZ11Src9MS1KL5wlyyJ1wKLZVzcAQ0C5uwCqWHrP+GDU9cuHTkwmT4ig2LPTuw hgVdTGDNev8PLeVgy8FgPbkrgsE/ArdwWVsuPvxaC639zSY9yXPGtcFxlwZ0Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728031544; 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=tezcUkJWP4FUphq58FqMaNOI5U4dCp3nrP0jAmiOad0=; b=OCAbFZaHLvbxOvDk8I6lVk5Gq7VEQ4Vtlp6bFYsylFNRv6SlpfkaTLi8HcuVrJTsxTSbHd 3+w+0wdIJQT69TSs143J0ZrTEnMmdTItv+3j8EC1iNa8vBOSCs9UEyMwGAG8XL4Z0KlEGg rIUEYYPAkicFYUeth2uozNEVzAkmN9Zlk11rdyHVHvgwLI/y/3V/d/lCOfMXgzimMB3Ov4 n1Hmg+PhKPLD1hGSXi/itWbu0BwkxBThr2cVfnhFcsW1efvctbkKBJsax2fAES1jBeKtSr lZGo7OfTRVuHju2Tp+x2NEZ9A683BpWgu1KoFgNRHpGtZZ3ogOMWMuSRF3KwpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728031544; a=rsa-sha256; cv=none; b=SxqM4jvJ0pPCpp8RPMyUCzIVPSLpWUziznYJiLA4V31r0UypU273Sl479tXgevId9Ii6gm u8lf8xjLIVr3JhgKtcVt4OghnWtUVzv55dDZezNcpmemjB/8E5zXH3BdWUUiIko/jV8TKS 0yOvSLPQfR5SSFVugHAUlxZEnuMG97MMtd+6uFIPj88+dd4yjAdgG9V4MONRW2RDdufvJz BF/HLnFDTDKCCQK/tIYbMoJC3LPsWTYsIi91obHX4u6BbJFFmB123YZrxmQKLi7D9No510 olHcSvUhPPG51e13cJDjFjRRHlI14qkPYqJJyTwqOm0YGZNZZobBBTRxnj76Ew== 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 4XKhvq6hRxzRqB; Fri, 4 Oct 2024 08:45:43 +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 4948jhbn020997; Fri, 4 Oct 2024 08:45:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4948jhhw020994; Fri, 4 Oct 2024 08:45:43 GMT (envelope-from git) Date: Fri, 4 Oct 2024 08:45:43 GMT Message-Id: <202410040845.4948jhhw020994@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: e6dc191e43ac - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: e6dc191e43ac25492890a1227983de5e2d811db8 Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=e6dc191e43ac25492890a1227983de5e2d811db8 commit e6dc191e43ac25492890a1227983de5e2d811db8 Author: Olivier Certner AuthorDate: 2024-06-03 19:22:12 +0000 Commit: Olivier Certner CommitDate: 2024-10-04 08:42:41 +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 4afac9b172e8..2b26e8bcdbf9 100644 --- a/sys/sys/bitset.h +++ b/sys/sys/bitset.h @@ -232,8 +232,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; \