From nobody Tue Jul 09 18:45:19 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 4WJVKq6NZ9z5QsnS; Tue, 09 Jul 2024 18:45:19 +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 4WJVKq4JcPz4knZ; Tue, 9 Jul 2024 18:45:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720550719; 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=K/leKwRx2GXR2vu/0ozwdyWMZV45y4/wCzh63Q84h7o=; b=FPgEgnF8BXfFtXFXc359Z0u2btf8wbDcF8LVud4n4XHOjU7873Q64kmhLQLj891dyu+pa9 YzrNOPHlB6NTkF6aItRuWSKZmbH4fDJCyEPsnmcZybm6bR8TxbSyqyFVgIAfXfKdf4tZ80 wTrIQXQNbVgvH21TCAVMUG6tbBj/tIMRCyoqOOry0/syt4kkGvrzb6J354tfrgunXevDO4 HbRAcoLr0FUyZMFyE4qBY7zBEbMTMrIQbA7zvv43InpQlO9hVrr8aZcWXKv6seAdDm+iN2 HUvOXLYOyfGBDajYo0osOLEhuAnhTiuPffksHBn8fUuswjuHtyCntWiIt2S8Ng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720550719; a=rsa-sha256; cv=none; b=qQ9M/YxwD8bpwdL+QJVss1xOz6ymsOn/+i5H1rjNdew0nlYBsCsyKp9VSKpNSriLDuMQnb EkQ+gR1lmhDPRjiAABxQB+T8eAJDeV0xoxYzT2TOlJaOwd+VaVMNsS649xwXmxdRjmHZiE rVx9TDOkt+UdeMMAAzeUFyKBuFRiZMRCsmZDy1G8DHs0uonQQUQ6iZyKGoxjAkQcyf9nVP UBrsmNhNvAr2KpopKjXNQu4MRJFLD2SaOdHJ2D9wxeWdL5ewzMpLdidoozAjyN2NKAx9LP erKxZtTTmx/Up5K2Pf+CZnzTslRUJy5nZ1mDf0/H8dBAIWJmFBIQh8G36ByT6w== 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=1720550719; 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=K/leKwRx2GXR2vu/0ozwdyWMZV45y4/wCzh63Q84h7o=; b=e4+d2oC51icRNLcCEILW0xgWzVptrmiuTxw9Lo94NUVrPosbuHgSG6eLha3ToCVD1t12T2 02/Z2fM92/N0XEdifiYbmWbjT6w3Iu66NLJPfZOg9zqxKO6IIt17vxzXWmkbehEuJkgL1q RVJ+CntQLPvvCVzkxJ7bxxu0VttAwhlQhlIDWXl8tyWkoZsqx/sbIoMTws5LrLthhnoYoB 85X0ySRXONSynwE0X5Cn/HcadBkAjK34/IAF5Z6suG4vJMW+glK6krY6yWtkjJUoMIs13Y sZRGdboIf0fiKD1E67BSDPNheUs+2E5BEviQ/fdOV2uqguh/S46DCGsePQ5nfg== 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 4WJVKq3vggzmFD; Tue, 9 Jul 2024 18:45:19 +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 469IjJxf087621; Tue, 9 Jul 2024 18:45:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 469IjJgi087618; Tue, 9 Jul 2024 18:45:19 GMT (envelope-from git) Date: Tue, 9 Jul 2024 18:45:19 GMT Message-Id: <202407091845.469IjJgi087618@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: 6bd85498ec2d - main - bthidd: declare appropriate size bitstring 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: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6bd85498ec2df62aeb8cf9c476daac8a4d9a7a4b Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=6bd85498ec2df62aeb8cf9c476daac8a4d9a7a4b commit 6bd85498ec2df62aeb8cf9c476daac8a4d9a7a4b Author: Ryan Libby AuthorDate: 2024-07-09 18:00:33 +0000 Commit: Ryan Libby CommitDate: 2024-07-09 18:00:33 +0000 bthidd: declare appropriate size bitstring The bitstring declared on the stack was much too large, and gcc noticed that we weren't memset()ing all of it. This one was harmless. Reported by: GCC -Wmemset-elt-size Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D45900 --- usr.sbin/bluetooth/bthidd/kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bluetooth/bthidd/kbd.c b/usr.sbin/bluetooth/bthidd/kbd.c index a807a9b27dec..51c12d111c37 100644 --- a/usr.sbin/bluetooth/bthidd/kbd.c +++ b/usr.sbin/bluetooth/bthidd/kbd.c @@ -339,7 +339,7 @@ kbd_maxkey(void) int32_t kbd_process_keys(bthid_session_p s) { - bitstr_t diff[bitstr_size(xsize)]; + bitstr_t bit_decl(diff, xsize); int32_t f1, f2, i; assert(s != NULL);