From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754123AbeDJOdO (ORCPT ); Tue, 10 Apr 2018 10:33:14 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45546 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753149AbeDJOdM (ORCPT ); Tue, 10 Apr 2018 10:33:12 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EC737607EF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: ath9k: dfs: remove accidental use of stack VLA From: Kalle Valo In-Reply-To: <20180330183401.GA16758@embeddedgus> References: <20180330183401.GA16758@embeddedgus> To: "Gustavo A. R. Silva" Cc: QCA ath9k Development , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20180410143312.6267D6014B@smtp.codeaurora.org> Date: Tue, 10 Apr 2018 14:33:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Gustavo A. R. Silva" wrote: > In preparation to enabling -Wvla, remove accidental use of stack VLA. > > This avoids an accidental stack VLA (since the compiler thinks > the value of FFT_NUM_SAMPLES can change, even when marked > "const"). This just replaces it with a #define. > > Also, fixed as part of the directive to remove all VLAs from > the kernel: https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Gustavo A. R. Silva > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 9c27489a3454 ath9k: dfs: remove accidental use of stack VLA -- https://patchwork.kernel.org/patch/10318271/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches