From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH wireless-drivers] mt76x0: Remove VLA usage Date: Thu, 9 Aug 2018 15:09:11 +0000 (UTC) Message-ID: <20180809150911.7D1F660AD8@smtp.codeaurora.org> References: <20180807225040.GA2164@beast> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Stanislaw Gruszka , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Kees Cook Return-path: In-Reply-To: <20180807225040.GA2164@beast> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Kees Cook wrote: > Even with "const" variables, the compiler will generate warnings about > VLA usage. In the quest to remove all VLAs from the kernel[1], this uses > a #define instead of a const to do the array sizing. > > [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com > > Fixes: e87b5039511a ("mt76x0: eeprom files") > Signed-off-by: Kees Cook > Acked-by: Stanislaw Gruszka Patch applied to wireless-drivers-next.git, thanks. 17ad18fd12a3 mt76x0: Remove VLA usage -- https://patchwork.kernel.org/patch/10559297/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches