Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2932538ybk; Mon, 18 May 2020 11:25:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD1JqXFW+ZHk5N9BbGXPZQBFqqqdh8xT82huxvYK8cS2MvBr3g2OkrYlkm2uQHXtgsMK63 X-Received: by 2002:a05:6402:2035:: with SMTP id ay21mr13849636edb.279.1589826334962; Mon, 18 May 2020 11:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589826334; cv=none; d=google.com; s=arc-20160816; b=quvT6/Db9hGeUQBTJ0VgJDV7EirqSpRLObljfkPbR6I99yVLaCmM/DsikFIJQZ8uzz RorFgpVdiIouF8IudSqZSRHcjvA/k/Vbk/pAyos5Mrq9jQfW1h9btr5jayjk1Xt9naQb 5rSKygslDH1G9k/6NqSRPU01HQGaisxBikvjgFpKN0M8e5g6CMNB+lYhQJkATZ3Sw/JJ 1U6psplRJUzWdpNX3/VXcC9m/UkP0xscdohMyP6rIzo7J+JW8Ji9xk3wX8HZflFklI8G +z9TIsl3sC5DAtY6KfKCThylmfVHj0wr7W1wl4ydm3gn+xzhss6x3lBWScgyWArq1C7P xHSA== 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=zUVXe47I268BQtKZaxIrRIpuuWVDzwTiZzIdnXbC73c=; b=D85Tr7HYdBjy1iaZcqFrLtr4RYa+onbNc6IjMjvKg5zbuB7hVqRJ6gC8++P9FD9Lw4 +NaQUS6E1kbBhXuVwzwFfpgKlz4dtzziJ51bIzMEWeV+krybApiMMq0iaEFrNvyIMIag m8EbHKOCisGl2d3VDerVwGkRyQ5+vIRDUQ68EUe6cgdclNcdya0w/4ZpBDO8g1fdxrCu icslJTEZi/veoDw4uFFjsBWFPhwsHzO2R4UG1E4hLh9uB6XBpoj08wiLrlHuWdbmk+EM Bi4O2zqoLY5IOdrdvEqcwWdS1bZmHWRqyUNf/Nt8dTTmx/2VCaj0cT3ay4+OwgGmew/n tvXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bNreGVXL; 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 c21si6725532ejr.277.2020.05.18.11.25.11; Mon, 18 May 2020 11:25:34 -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=bNreGVXL; 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 S2387787AbgERSVG (ORCPT + 99 others); Mon, 18 May 2020 14:21:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:55286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730293AbgERRwK (ORCPT ); Mon, 18 May 2020 13:52:10 -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 D49A320715; Mon, 18 May 2020 17:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589824329; bh=hvqqDYaM6AyhaXkWz7Zgch97q9DfaBBza48GIAW7nbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bNreGVXLzIAlPjc6ThxNLAVIwYvjoeu8HJAeeiNVCFnwjIDhxcnNMopUcIsCeoWYP MAXqxH7ZtlUUmcbaCDRMnpAIexmsnST/IMVBhKK+zh8vP4iPXT+iCFa/D/N/eDx/Ia F2EwTVFxPLkyX269g2K3TX/ohCgv+vH2rgYMEfKo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds Subject: [PATCH 4.19 48/80] gcc-10: disable zero-length-bounds warning for now Date: Mon, 18 May 2020 19:37:06 +0200 Message-Id: <20200518173500.146875633@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200518173450.097837707@linuxfoundation.org> References: <20200518173450.097837707@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 @@ -792,6 +792,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)