From nobody Fri May 26 20:06:57 2023 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 4QSbYF30Zzz4CrrX; Fri, 26 May 2023 20:06:57 +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 4QSbYF2Q4rz3Cqp; Fri, 26 May 2023 20:06:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685131617; 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=DXUS1voBPexCjC1YWcThd/FkGT5LHHmzHsTzKxIkB1E=; b=XYYDu9kFl0AO4QEyuo3pZscLRctgHUvAMwqI9Vf5r8oQ8389YRGCcDEn6HAaq0F/62ODSX YWdENJjAFBsWKi8DXzhhzGliwBVlDFreyDy/bygwlp/UQ0FICTF+HB+HMFvX8E/HFCyYAM 1luwn+VpBSSorsgUAX04oHykUDNYahf/PurcDvgUgNNTnGtn83VZTsvqjIf/2yfC46yfkt hcMFYx7V4kaCx+0EbNjO9dkOGbaA7Scnh136vX7QLKkuC4dfiGqTgqVZWyoGkfpyyN6lxu qlz0XUw56FV45XVeRKfawK5TtfjQkerlZbZZIuLpr/buLZYsMsnDoaAyzJclBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685131617; 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=DXUS1voBPexCjC1YWcThd/FkGT5LHHmzHsTzKxIkB1E=; b=o9+N2n6QkUZuexIdaunDzhZFtiNIbuXricyOjyBp4kED2Rj5nLfiF2mGvItSXdyv23Aw8X /+1oXWIY1zt9XDHJvNsLI0kPe4L/8EmpMij09zKESaDWF57S63k04DpTRGbNCDhVjNdOoA QeeybQAaxUfY55x4YG36Jat9W+ghEUo6Tb3Nbfgm8vSHDASDp9Tx5lPHAI+UZqqqGV5N/y Bq7LGb8BZ5pO3ULsL4zP6PrGlkRLzy0jMMtvf3TFVIZz6T1I4tbxvIPp12u3jaSmA5f7Sn DunXjByOIPvjvYmpKcpqDdyQSVSJ00wOH6fvpYQdR4uk2IbRvulhKSs9YxsW+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685131617; a=rsa-sha256; cv=none; b=oy5WYLfTcHlkLWtmZrrVeMS/K+NGUV5vZ35OwZrrWHeprJ6tP/+rHeB5RKaE03AlYHQ2cK oELdlsjGaNJrgmEnYeny1nmnhm+tPQCh8Al4UPqUa6XdL4VRzkk6NTYI5PAOI400yTIh4V HXs9mRRMUjEn2x4qtrlEyReaE29X8WGIx64yepxV8GbjUDpTVnaIk5ENa7HK53zswpbIud BACEPyhHqOgYyVe1hVo50b5CTl/0YWSoUx2OjUSWxY7pFHyfmAbVehYzYOluehIHshmTsR C+//vv+tv9ymEUGcCUcM121SCE+X2r/UiktVspJ1+FiVBORAzJeeXa2mLUeNSg== 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 4QSbYF0z3YzKZV; Fri, 26 May 2023 20:06:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34QK6vWF098210; Fri, 26 May 2023 20:06:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34QK6vxx098209; Fri, 26 May 2023 20:06:57 GMT (envelope-from git) Date: Fri, 26 May 2023 20:06:57 GMT Message-Id: <202305262006.34QK6vxx098209@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 44866dfb4417 - main - bitset: Remove BITSET_FOREACH_ADVANCE 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 44866dfb44178c86b6f380eb713a8f07c3d3b566 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=44866dfb44178c86b6f380eb713a8f07c3d3b566 commit 44866dfb44178c86b6f380eb713a8f07c3d3b566 Author: Mark Johnston AuthorDate: 2023-05-24 17:05:03 +0000 Commit: Mark Johnston CommitDate: 2023-05-26 19:38:08 +0000 bitset: Remove BITSET_FOREACH_ADVANCE __BITSET_FOREACH_ADVANCE is a helper macro for __BITSET_FOREACH_IS(SET|CLR) and wasn't meant to be used directly by consumers. While here, fix some whitespace and move a comment back to where it belongs. Fixes: 5e04571cf3cf ("sys/bitset.h: reduce visibility of BIT_* macros") MFC after: 1 week --- sys/sys/bitset.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/sys/bitset.h b/sys/sys/bitset.h index ca6dd4590e89..a6e504e7f3b3 100644 --- a/sys/sys/bitset.h +++ b/sys/sys/bitset.h @@ -309,9 +309,6 @@ #define __BITSET_SIZE(_s) (__bitset_words((_s)) * sizeof(long)) #if defined(_KERNEL) || defined(_WANT_FREEBSD_BITSET) -/* - * Dynamically allocate a bitset. - */ #define BIT_AND(_s, d, s) __BIT_AND(_s, d, s) #define BIT_AND2(_s, d, s1, s2) __BIT_AND2(_s, d, s1, s2) #define BIT_ANDNOT(_s, d, s) __BIT_ANDNOT(_s, d, s) @@ -328,8 +325,7 @@ #define BIT_FFS_AT(_s, p, start) __BIT_FFS_AT(_s, p, start) #define BIT_FILL(_s, p) __BIT_FILL(_s, p) #define BIT_FLS(_s, p) __BIT_FLS(_s, p) -#define BIT_FOREACH(_s, i, p, op) __BIT_FOREACH(_s, i, p, op) -#define BIT_FOREACH_ADVANCE(_s, i, p, op) __BIT_FOREACH_ADVANCE(_s, i, p, op) +#define BIT_FOREACH(_s, i, p, op) __BIT_FOREACH(_s, i, p, op) #define BIT_FOREACH_ISCLR(_s, i, p) __BIT_FOREACH_ISCLR(_s, i, p) #define BIT_FOREACH_ISSET(_s, i, p) __BIT_FOREACH_ISSET(_s, i, p) #define BIT_ISFULLSET(_s, p) __BIT_ISFULLSET(_s, p) @@ -350,6 +346,9 @@ #define BIT_ZERO(_s, p) __BIT_ZERO(_s, p) #if defined(_KERNEL) +/* + * Dynamically allocate a bitset. + */ #define BITSET_ALLOC(_s, mt, mf) malloc(__BITSET_SIZE((_s)), mt, (mf)) #define BITSET_FREE(p, mt) free(p, mt) #endif /* _KERNEL */