Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2961657ybk; Mon, 18 May 2020 12:10:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWjmgTm3Rg7FNk7QKvrqMWCCRyOl4vbrPIOO1cNGUvsQhU8mdrohGl8wcKW8cgQ9yp2nVu X-Received: by 2002:a17:906:a44f:: with SMTP id cb15mr15317946ejb.219.1589829040823; Mon, 18 May 2020 12:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589829040; cv=none; d=google.com; s=arc-20160816; b=uJ5DIG107UMZphltP8JRPKBzJIHpBH2VMxLvTzysK9MdodvUGbAeoCI5YBN+tcjV8C 4V7DKTDBvulPBcfby3sii/LiheHZUxfsvIb1a8OuNzam9ihwcNZK+BMKPJu87DLr1UFv 5uaSxeo3/pKHFEWEDxu4XCJwP0Tl/cId6myYlBAfnnKYIZ0vCW+LL2+YMAK9KvqtHEC4 R97lzLYUXfn8oy69L0t8e4+Yb2ULGWi2tOsG0nJUYIlEgrsUEfkcst3vq97GMyS+a7R9 5xXFkvsDXAh8ZjHVpntilz7kGbEYQQq9JiUTcTFcoHSjQ+/L0eewNngZXmWQ9Om6fh3l y36Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Wd/fq7cDsSPPXcXm0uaXjBtq6YIuhRDD4LgX1JHQJGM=; b=n3WsqbGM05mrFrOxGKkItamGdkaMeann5PxNGiviZE/uAE+ydHiyt+Cn5Aat8F1mah dUe8kYvIbkZLkwwK2wPC0dXhYjUpKMFlYOYZYo6PZy4Q+fSfbpb46iPJs/zPjcKOCVwT TF9f4VK/3GoboxYj7OF2Pp5LyPkV8Nk64hSG3FgPc6yPTiKJK3OGlBHx6fuQIQ3vNV2E aOG7+TVnG+OXbiGm7Xtin1gVYbsU9nZ1snBc3noKPrOMTRF0kBLOSqDrqzMeEHbolu1u ovDyDWyarsoqC6Ll4svI5iuoTmGw6Dz9xUPlFdVafEd/vyTF7y59pbTP5vq57MiXEtxI 676Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pnK/ISPT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si6944280edg.244.2020.05.18.12.10.17; Mon, 18 May 2020 12:10:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pnK/ISPT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729778AbgERRol (ORCPT + 99 others); Mon, 18 May 2020 13:44:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:42998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729275AbgERRof (ORCPT ); Mon, 18 May 2020 13:44:35 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D276620715; Mon, 18 May 2020 17:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589823875; bh=bDA3ORR6saXc6yEWqMEoxIh7cCsWEQXRzhmnx+QhUaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pnK/ISPTGYLn8JgxCkgPbt44GiQRDG7k3OUWtJD+eM5d+M1KCwh+kZN0HeLiu2wCC WSrM59BDmUYhL7E94H+DA0rZeOgjoYT0gFCipzK0AJFyGd/Rk7AUsi42Tz6lHd7SXP Sazo8yNSBeKmFjnXOjDZakx58Dyds0Z4/iqMiznE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds Subject: [PATCH 4.9 64/90] gcc-10: disable zero-length-bounds warning for now Date: Mon, 18 May 2020 19:36:42 +0200 Message-Id: <20200518173504.147510115@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200518173450.930655662@linuxfoundation.org> References: <20200518173450.930655662@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Torvalds commit 5c45de21a2223fe46cf9488c99a7fbcf01527670 upstream. This is a fine warning, but we still have a number of zero-length arrays in the kernel that come from the traditional gcc extension. Yes, they are getting converted to flexible arrays, but in the meantime the gcc-10 warning about zero-length bounds is very verbose, and is hiding other issues. I missed one actual build failure because it was hidden among hundreds of lines of warning. Thankfully I caught it on the second go before pushing things out, but it convinced me that I really need to disable the new warnings for now. We'll hopefully be all done with our conversion to flexible arrays in the not too distant future, and we can then re-enable this warning. Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Makefile | 3 +++ 1 file changed, 3 insertions(+) --- a/Makefile +++ b/Makefile @@ -797,6 +797,9 @@ KBUILD_CFLAGS += $(call cc-disable-warni # disable stringop warnings in gcc 8+ KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation) +# We'll want to enable this eventually, but it's not going away for 5.7 at least +KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds) + # Enabled with W=2, disabled by default as noisy KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)