From nobody Wed May 03 00:29:47 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 4Q9yWc1hyNz48NkZ; Wed, 3 May 2023 00:29:48 +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 4Q9yWb62Yfz3mls; Wed, 3 May 2023 00:29:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073787; 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=ES0fILC/cBYyXXXjPQkWxJr8SOJdZEOSj0lHm7jiEkI=; b=j3hDqCOar4/UoZllOAHgwTvBrxVYEwxd6QEaR8lGmpNjsYBjV4/5f1Shg8wtCMs1XRjVlf WPtZKldP0bISbwb24/1HkMS+AjQ4u3cOub56RuDtWLu0pBkZw0vwNENHqdC5agKOly59tn xa/3FhaqXaTejzW03f3e0s1E2TamoUJnTYZlT8OObeQvNp0Khu4FgmnLHd1hzTM4Deb40H iCvoivttzebWImWKycAJ88FK48CsUSAyGyr2PYoEm1mzxzXPlU4+RdMwFiIRzAtHmX9BG5 6HtFySvhfUQwkLs7sOw+ChZIc27x1FePBA2uOu86/i8K5HyrAMyZfNK5bSXPqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073787; 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=ES0fILC/cBYyXXXjPQkWxJr8SOJdZEOSj0lHm7jiEkI=; b=iw8jCsw5vThS52rDQYgFxZyH5rcuhEjA9BiXOTNDXt30q9dYjnPQDJ8uEa6ziQMDzlSC4s 9hcAtbCkf/ei2lPYF2VU88AKIx1L5weXCE0CJ6RiIStIuWeU5LH1ebT9qpm2QB5WFCAhc9 mKEXhDwh3/hSuj2g4+K+cK5PodDuuyjnWkSfxG9oMGs522NLspZDzTv4OwOeiASSyS3mr2 WhTsBKEULrWcq+EpH2JqE3jDwRicaNp9Qhy3sNFlmHTpey9ZrGrBOXa7W7MmZDJikaINkZ T+VatTs0feTR+Ad1SnE7wUuj8C4TBcjjto3lyGGeHh9sre4+tPgrwiE8c6fL3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073787; a=rsa-sha256; cv=none; b=Vwzwl6adMuZj1n5Yuz+m6poZLK2HkEKhWh6n/j/gOhCPs4eA4aNyZcEf/aWc/3jZjr2Had JUtzxtI+n7/Feb5nM3n8TzR0iuOwpvPmr5zcbBhVRx3lnoWyZlMPxYZGbI/Ffn1EoqXNq+ SNGpzmkJQCN1Z9ff8XEyT4Hz9X9kw9LvzBpWgIeVPNshADquTR63qrjzKnwZ3LrOnulQmy XY0ZhK8Yj7z2Y/cWgqktFQWEq37tDTJW+DDmeKrAS5VojCUB02+v1uU989jRqdAMuSDlHI yHB+U0wnq8ugS6/QxXr9fSTzbz/6yFjouEcc9QMrbbAtUZARFxsYk0oiN2+wxQ== 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 4Q9yWb5425z189K; Wed, 3 May 2023 00:29:47 +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 3430Tle4072157; Wed, 3 May 2023 00:29:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430Tl49072156; Wed, 3 May 2023 00:29:47 GMT (envelope-from git) Date: Wed, 3 May 2023 00:29:47 GMT Message-Id: <202305030029.3430Tl49072156@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 0f8e9a76f304 - stable/13 - Disable -Wzero-length-bounds for the kernel for GCC 12. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0f8e9a76f3045855d099bb9fa89684016822f242 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0f8e9a76f3045855d099bb9fa89684016822f242 commit 0f8e9a76f3045855d099bb9fa89684016822f242 Author: John Baldwin AuthorDate: 2022-12-21 18:47:08 +0000 Commit: John Baldwin CommitDate: 2023-05-03 00:13:25 +0000 Disable -Wzero-length-bounds for the kernel for GCC 12. The mlx5 driver and some other OFED bits use a somewhat dubious pattern of: struct foo { uint64_t arg[0]; /* Real members of a struct */ }; The code then treats 'arg' as if it were really a kind of union such that foo.arg[N] functions similarly to (uint64_t *)foo[N]. This uses of foo.arg[N] then trigger this warning. No real bugs were found by this warning though, so just turn it off globally. Reviewed by: hselasky, kib Differential Revision: https://reviews.freebsd.org/D37630 (cherry picked from commit 1aa6d44decb33ce3eab0efe5336b75fa2dfa3733) --- sys/conf/kern.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index b50c82b7d913..281c49c7c850 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -92,7 +92,8 @@ CWARNEXTRA+= -Wno-address-of-packed-member \ -Wno-error=alloca-larger-than= .if ${COMPILER_VERSION} >= 120100 CWARNEXTRA+= -Wno-error=nonnull \ - -Wno-dangling-pointer + -Wno-dangling-pointer \ + -Wno-zero-length-bounds .endif .endif