From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:40502 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732570AbeHIReb (ORCPT ); Thu, 9 Aug 2018 13:34:31 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Subject: Re: [PATCH wireless-drivers] mt76x0: Remove VLA usage From: Kalle Valo In-Reply-To: <20180807225040.GA2164@beast> References: <20180807225040.GA2164@beast> To: Kees Cook Cc: Stanislaw Gruszka , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <20180809150911.7D1F660AD8@smtp.codeaurora.org> (sfid-20180809_170922_579536_06352F1D) Date: Thu, 9 Aug 2018 15:09:11 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: 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