From nobody Wed May 03 00:29:43 2023 X-Original-To: dev-commits-src-branches@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 4Q9yWW3wRDz48NSY; Wed, 3 May 2023 00:29:43 +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 4Q9yWW2z3Mz3mbk; Wed, 3 May 2023 00:29:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073783; 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=EwX/TjT+uKf8r4mlwq6eNsZXUXY7idB0Km8Ya9KSgtQ=; b=pvBZ0VdHXhtY/xhsLv8ah4GOoDsd0SXZtE2oK0+zHCG9ExXDRLF8/COwr8+DeMuK1GHYAs 87Hg8nkUPxJqWDMu4uvH+wlWMLF24rgnU3l5iSkERlHAwIxVxaga6mtt0NzgPISoI4bT9Q 7JXQvoJSqJv7Xe/eoiGsgyw+/BBw4XBnq+4f7J/2sVtn0QlYYMRYXUiOyd03Qe5+t8iuGP BmVb9+5ZUX+Rj6mGf9KEBmgXqX75qNa1BCENYb3Wmnx1aE6lSgWKlqdk0OLMbxd5Wd42lg CHb/OCJQby0HeREz2meRP21oZcwz6Z6Pq2hFdnghWI29iZYSwDPWQKRE5iwyGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073783; 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=EwX/TjT+uKf8r4mlwq6eNsZXUXY7idB0Km8Ya9KSgtQ=; b=TT0uP4NqhFYurGr6rWhdkfyKKTWZSJ1Bg+DO7Q16TJdYNNua/YtNiPfaY07TsLeQltZtSD eT5kvA4ZM4tAjhyRrJovpQ0Mf6wty/cEoo0KVINCi66EZ0zjQ22JMgu8sWUL2PiOjdNpTN IbDpIDZ2qSBWZPm+Yo9rwe0YpNydfgbkyEG3BhV32aSwgMsATCdFBbNV6leb1euGFKcL5T dYPfW0/el7ETdJczCFsodbBo3W7itEALvLtF+TcCwYcq9pqXtn3pGtOHQK8GEpcUs9YFoN 6HBmBIRLvi48GLGRrfOD8bSyJ8r199DG+PbxAB7pIb4QTfCvCnTx2zJVu7OuGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073783; a=rsa-sha256; cv=none; b=KslJhHhjLhTMjNppucYs2pOpVn/flj8hGpyODyiGiHd+NhQs4KNT2zEzq7WjLwie5kLJCC yZgCYzpSMATLUCW9h7clu2QHxVyS3inqRKafk2sjsxDTiEzrSgoNNnGoMr2fwUxRv5NHEm uZMukHpPkkh0VzDULp+/SheAObsIX/K3ETEdLFGJ3APtydtX/7SVwsmzsbjIDV056uqJHX L0E5WdW/IwB+tSCc8HOD6g0DME2ry4OuRJWz0KA1N4hb0eMB8p9OTRVKWJM3zv+HqoaDd6 VJ5m26PfQ7Uvbvo8VzI/b8Ty+VvQbxhpV8PXimOt+/9rGMXnvMcyKgjJBvtYmA== 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 4Q9yWW246Hz18TJ; Wed, 3 May 2023 00:29:43 +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 3430Th0Q072061; Wed, 3 May 2023 00:29:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430Thgr072060; Wed, 3 May 2023 00:29:43 GMT (envelope-from git) Date: Wed, 3 May 2023 00:29:43 GMT Message-Id: <202305030029.3430Thgr072060@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: ff01fd164655 - stable/13 - Disable errors for -Wnonnull for the kernel for GCC 12. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: ff01fd164655b1ec9d0455c6a42ec5218a30b368 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ff01fd164655b1ec9d0455c6a42ec5218a30b368 commit ff01fd164655b1ec9d0455c6a42ec5218a30b368 Author: John Baldwin AuthorDate: 2022-12-21 18:46:06 +0000 Commit: John Baldwin CommitDate: 2023-05-03 00:11:57 +0000 Disable errors for -Wnonnull for the kernel for GCC 12. The USB code and some other places raise false positives when a NULL pointer is passed to an inlined function along with a separate length and the compiler can't determine that the separate length of 0 prevents the use of the NULL pointer. Differential Revision: https://reviews.freebsd.org/D37627 (cherry picked from commit 488c498b099e3f48db4048833d2b0d03d7bed3e1) --- sys/conf/kern.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index bed235cf1afe..5d902b340c2b 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -90,6 +90,9 @@ CWARNEXTRA+= -Wno-error=packed-not-aligned .if ${COMPILER_VERSION} >= 90100 CWARNEXTRA+= -Wno-address-of-packed-member \ -Wno-error=alloca-larger-than= +.if ${COMPILER_VERSION} >= 120100 +CWARNEXTRA+= -Wno-error=nonnull +.endif .endif # GCC produces false positives for functions that switch on an