From nobody Thu May 09 23:20:48 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 4Vb7Ks0QD9z5KGc0; Thu, 09 May 2024 23:20:49 +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 4Vb7Kr4QHBz44Z6; Thu, 9 May 2024 23:20:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715296848; 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=foU+bh8N7Ck/XZv3Tkks6+7s48d7mjXwjweuXDm6DmA=; b=UCdqGUrBmab4DeUmgP8q6NNyw22m/f+cEehwk6JxgqsWbvVDwlZUivb6p/P5BOiqTcq+bf QDQXhC2GybC5zc2FGyApP3llicHkBGtDT563PsNXF32t7Jgm6S8OmL6H9b7WrbDuAVbFI+ 8Qvv+fGmdXNEiPcO6LKaGquHRF6K0kPF+0lkQhwqb2MS1O16himz8vX1bs2L/ciOgTondG pf30p1wnxAOLfK3KV4RMREUCyi5OFYmaKsD261PwgjEQ5pc1TF40QWX4ZpevVJ9tVznlQq mZ4fw3nh6R3YCd/93LrVZeurpJT1gM/mo1XL8KR4jhLiu2Xv5nqRHq9xwxHOXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715296848; a=rsa-sha256; cv=none; b=kv0s65E/qOU2LxEZQWE4XCKDhiS0RpmsYrhKXzhhOahCrB7NaQ0HIufv4MPOv7VCAL0moS sBcNj4hdpIj7JcFCbHhlQz6jUi3/krRu9dTcBjhDWR70ma9Dkt8hpbMco6CGsh8AK/pxik j/51ykS5nloBH/y5fGTUhEz4FPwiCqtdAfN5+zP8nwcb0aMV/rDZjH7f7VZLKgc2AuMooP EvbpTty/doD3fuH2RyIRJV3crXEh7dwsEBRWAavR3laluhg8Tkeg65N3I5j8Ks0ozA+MLV W15oTC4UvRoEhJ2r4eEvnGpSH8yrQqIoroDR41PlLPf6p92eAXNFssD7ITSfFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715296848; 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=foU+bh8N7Ck/XZv3Tkks6+7s48d7mjXwjweuXDm6DmA=; b=G33+mEWPe31/OqpKGTeU+7DXAoXfMo18i75Nq+5SCGHV8T/StsAFqhC8l33Z66rKMSv4On il5eRRsrCNY1Tuuik6k/wxf8ySvVcoAsNJNB9y1cU7+j8oq5JarcY2rO2zkrthvF81LNfs lJoa5KTWDpNw4vs9Yjhkft88dXesAgn6gJPi+FPI63Ou+i7UZ8OgJCAYD8pB8omz48xecT TINKjJK2lc2pIJNI1wWbZi45fcglFiEOksPDiu5RxEObP1dXF5gYU2WhFKHPQjsKfnsxod 8bTzWAGYquC0Gv5g63gnGN7gPFZ/Lcn0HwVmBRIVmTBuPmlwIpvaxuCrecGuiw== 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 4Vb7Kr3BDzz1S3G; Thu, 9 May 2024 23:20:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 449NKmmV057708; Thu, 9 May 2024 23:20:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 449NKmd0057705; Thu, 9 May 2024 23:20:48 GMT (envelope-from git) Date: Thu, 9 May 2024 23:20:48 GMT Message-Id: <202405092320.449NKmd0057705@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 99adf661ab63 - main - sys: declare bit sets unsigned 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 99adf661ab635a956abc2998689fd42c85f8ccc5 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=99adf661ab635a956abc2998689fd42c85f8ccc5 commit 99adf661ab635a956abc2998689fd42c85f8ccc5 Author: Elliott Mitchell AuthorDate: 2024-05-09 23:04:35 +0000 Commit: Warner Losh CommitDate: 2024-05-09 23:14:41 +0000 sys: declare bit sets unsigned Substantially reduce the number of signed/unsigned issues (warnings if enabled). While these are presently disabled for FreeBSD, being able to enable another warning would be good. Differential Revision: https://reviews.freebsd.org/D32793 Reviewed by: imp, jhibbits Pull Request: https://github.com/freebsd/freebsd-src/pull/1126 --- sys/sys/_bitset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/_bitset.h b/sys/sys/_bitset.h index 87bc722fe5f8..2b3be3bbec61 100644 --- a/sys/sys/_bitset.h +++ b/sys/sys/_bitset.h @@ -36,7 +36,7 @@ * Macros addressing word and bit within it, tuned to make compiler * optimize cases when SETSIZE fits into single machine word. */ -#define _BITSET_BITS (sizeof(long) * 8) +#define _BITSET_BITS (sizeof(unsigned long) * 8) #define __howmany(x, y) (((x) + ((y) - 1)) / (y)) @@ -44,7 +44,7 @@ #define __BITSET_DEFINE(_t, _s) \ struct _t { \ - long __bits[__bitset_words((_s))]; \ + unsigned long __bits[__bitset_words((_s))]; \ } /*