Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp648689imm; Fri, 5 Oct 2018 09:28:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV632fiMDwHTxKhZ4n7+BuhcwpG2l/sOBQEthcbWAcQhLHfn2cxKUOWBDlYv+r+wj7OVbN2n9 X-Received: by 2002:a17:902:848d:: with SMTP id c13-v6mr11798517plo.303.1538756896069; Fri, 05 Oct 2018 09:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538756896; cv=none; d=google.com; s=arc-20160816; b=FZWcEfwwC14INya0K4Alk3MP7wgOUBfHQICiaiNPQk+IEOQ7HIApkw6czQB1RjV+3g A9xZM3l1kP8o69lPtcbAn03qaB9yBYv1OFP342IFN04kpL//8iSa1REG8m/5HCBzAQfb rqzYM6bvBiSDVEVRuhU0wQVHHNghpViQ4GJcTFF/BZKVG+Tvg6+OyHeX+uPYBBLXKEbV OfuTJ6nPOASBfRrekHICxlcyBIPirPRFo7/eW8nzIouFRITzbXatbM+lo9Ftb2LUq7CE xqklJn1VCQMKqfkxN2JkptF6Qc2blLAjoavl1ktqIv1c1sKB1UBwEsPCp1r92ef2KRlB SmkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KQNvv/QjVtmklrfAfcDBdwfZIaye7B00llWXEbjNqMw=; b=RyL2vEdTyvEyjfQMZHD+VEfTStZbDysXUFwldzDK8Fwho9ngNLl8oUSy0K5Eu71VKi AObDe5DkBXh0Zl6k7BwQRVo/0VX2YS17A4UyXPJ2WI1ViiHR7gmingB/JI9Bpd8pulH/ N43lOYEtqgsba108SOUFA2NmsqoZL8TwtqYVBQlP/Mq6QTo2LmcezNXvEsSkvgtFogGu dEFfDmthyU5a0m3nvJUrGgcUn1HaCLmeNA7Vefm4g9QqiH19m+5oRItfiohJfxWZP92i Uizxuigkv39ywMNpfJBbLXGrR/wBYeHPddRyDRgZRmPwMx/KIXeaoh/QMye90iqQByBg KcVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=rm4nKBEs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f62-v6si9674495pfb.218.2018.10.05.09.28.00; Fri, 05 Oct 2018 09:28:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=rm4nKBEs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729594AbeJEX0D (ORCPT + 99 others); Fri, 5 Oct 2018 19:26:03 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55093 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729024AbeJEX0C (ORCPT ); Fri, 5 Oct 2018 19:26:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=KQNvv/QjVtmklrfAfcDBdwfZIaye7B00llWXEbjNqMw=; b=rm4nKBEssQIs3Q74z0odUTm5h6QzXljTTnghU48fkZ2CeyUsoW97rS/IisRwjmJ6LdvbMhW3OKcoj14uuehPSLYPvlQDE1hxtt7Yyfbl1S4IoOQ+jtv9GIVQ+kwGKvMxp/0sxhm5FnewkPgGB0PAVXO+SEC68RexDXDFKJZn+IM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1g8Svt-0005Xz-8s; Fri, 05 Oct 2018 18:26:29 +0200 Date: Fri, 5 Oct 2018 18:26:29 +0200 From: Andrew Lunn To: Arnd Bergmann Cc: Jason Cooper , Sebastian Hesselbarth , Gregory Clement , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: orion: avoid VLA in orion_mpp_conf Message-ID: <20181005162629.GJ4730@lunn.ch> References: <20181005161601.875388-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181005161601.875388-1-arnd@arndb.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 06:15:49PM +0200, Arnd Bergmann wrote: > Testing randconfig builds found an instance of a VLA that was > missed when determining that we have removed them all: > > arch/arm/plat-orion/mpp.c: In function 'orion_mpp_conf': > arch/arm/plat-orion/mpp.c:31:2: error: ISO C90 forbids variable length array 'mpp_ctrl' [-Werror=vla] > > This one is fairly straightforward: we know what all three > callers are, and the maximum length is not very long. > > Fixes: 68664695ae57 ("Makefile: Globally enable VLA warning") > Cc: Kees Cook > Signed-off-by: Arnd Bergmann Reviewed-by: Andrew Lunn Hi Arnd Do you want this to go via the mvebu tree? Or you can take it direct into arm-soc. There have not been any patches to orion5x, dove or mv78xx0 for a long time, so there won't be any merge conflicts. Thanks Andrew