From nobody Wed Nov 15 02:37:52 2023 X-Original-To: dev-commits-src-main@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 4SVS4w4Ggqz50XXy; Wed, 15 Nov 2023 02:37:52 +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 4SVS4w3ZTKz4Y6x; Wed, 15 Nov 2023 02:37:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015872; 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=3d9MMQPkaqY5/BxryAX6AkoBY9mG54nbcgITg34DUjY=; b=EXNkW8wUffWtVwthBNlwyAG7VQA5t4Ia1zOvnm3QpEqEajBNiME5V3JsSzpFdMQoYCNKTJ 3pBJfzexRRKTiSQOQg6wtQowvdvaT+NAJ9D02cIdUhEdse9PKh9Nj9Efkab/0WmnsvgS3l +ZgUI8uI61ncWAfQakVCdiFhgJfphYI5g3o4MOILSqm2G2eRaOUPI55VlK3voKFNdlt93k b4zJxy90v1Pj0EMFUm6MBjFezwqZk8FmeXxovbEUxMdqeswB8uuvRiE9ogQ3cml7JKNBTf yJZOZFw+1PXqSHrzbrIgSjqly5/OXoQYpqXAGyNEhVDEdxuuH2gK2JSILrry8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015872; 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=3d9MMQPkaqY5/BxryAX6AkoBY9mG54nbcgITg34DUjY=; b=acKaBwU8H5XKW4vL/AqN8DrmVZFQiOi+PqgEQ3YJLv5/ZWTaF/UWTFnRywrhTlPqsL6Nyg mvIDFZOLNQikc/WhDAMZZqn/kJ4ndEJb+1f84/UwTPEpYnaUzf8e2MyERYnWbQx/5PJhwT HYv+XFVdUr+CahBNUhdn1m2xzHIGqKpIyv29M2UGu3R17wK/e8lfyVK3AzNCS7admBg/SB Vddb8H8yWJhIaCbHCoEXeD/3U3JAAtJ28/4owgzSbA9Df8E0mCAS3ENj7b/Ao0R3NP2mNq A648HKuYydj4DLu6WjKDy+exC7sJFU4j3gSrSUeb/Goa+jXPg6/75qdBlF6REw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700015872; a=rsa-sha256; cv=none; b=OIEn4zap6Y2dCFWnqq7BOwKU50d+wi8JdaHDpoEkuPJj86WDyxCNRcEmvT9D3f1AccPi3e iX8b4zp9G0of/+D0HUy3Njueu5/sajsbvRPllmYPXwOJBO5g6lBCFqg7XyV4LZeJ2hvIZK MR+wANpbjOW3mKbaTXzDyAKOUqJnaR2ZQ0uMtGTHBr2DEywxreK93l2aRctYzt5aI1iDjn ulGh3mS/2pcg3jzhUvdtvrR9lwo82x0Yk7/F9Yg4nGV3rG5VKl7X03G/t192O2KszVYEHy exHX8b3ijOqezeIBUd1R7QOVQgowQpI8OsfX2Kpwn/EMJV03bOnEvqiwn2d1Tg== 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 4SVS4w2gCPz1CvH; Wed, 15 Nov 2023 02:37:52 +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 3AF2bqun010108; Wed, 15 Nov 2023 02:37:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AF2bqxF010105; Wed, 15 Nov 2023 02:37:52 GMT (envelope-from git) Date: Wed, 15 Nov 2023 02:37:52 GMT Message-Id: <202311150237.3AF2bqxF010105@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: ede077bf2a25 - main - sys: Disable -Walloc-size-larger-than for GCC 9+ List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: ede077bf2a259c23923d1ab1231dc8c4577e6672 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ede077bf2a259c23923d1ab1231dc8c4577e6672 commit ede077bf2a259c23923d1ab1231dc8c4577e6672 Author: John Baldwin AuthorDate: 2023-11-15 02:37:25 +0000 Commit: John Baldwin CommitDate: 2023-11-15 02:37:25 +0000 sys: Disable -Walloc-size-larger-than for GCC 9+ By default this warns about sizes larger than PTRDIFF_MAX passed to malloc (rather than SIZE_MAX). This doesn't trigger deterministically, but it does trigger for kmalloc() of struct_size() in iwlwifi's iwl_configure_rxq even when struct_size() is changed to use PTRDIFF_MAX. NB: struct_size() in Linux caps the size at SIZE_MAX, not PTRDIFF_MAX via size_mul(). Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D42587 --- sys/conf/kern.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 72b7387d3959..08779b4da193 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -76,6 +76,7 @@ CWARNEXTRA+= -Wno-error=packed-not-aligned .endif .if ${COMPILER_VERSION} >= 90100 CWARNEXTRA+= -Wno-address-of-packed-member \ + -Wno-alloc-size-larger-than \ -Wno-error=alloca-larger-than= .if ${COMPILER_VERSION} >= 120100 CWARNEXTRA+= -Wno-error=nonnull \