From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FB927E3 for ; Thu, 25 May 2023 17:03:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD71EC433EF; Thu, 25 May 2023 17:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685034237; bh=TPlPKAj0p+zEqi9z0wS9kwH6FfheU3xhHZLDGA9HSMI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=WulJw5conWhP1Dnf+r2lYH3dRz1hcS/L7rpxgSyv16nh8X3+iYKTxP70dPDmOzojR 2GHX+1oVGYrIqKu1JFz07eKVxqPse+fqem4POSGVurzyMgcY0j8RhH/0utl01k7WDb +aSbKnhEELRwjJ7lOHvMHLjzthAUb17SjlVzSpLb1bpXx1oz7hE0/bB3Ty98OecFjP n4arCtcvZhXXxTtroxeDwI0jZBK36e3cBOUSzo/QnU/CJ8LAE08EG0vCmB/eSfFYUs OYzfPvUabl9HwQrJesUFxJZXqu8A5p26immo0He1XiaVrxx38rTxnCu7BNUzAotaa3 8QqrRnsqcE1yw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH][next] wifi: wil6210: wmi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper From: Kalle Valo In-Reply-To: References: To: "Gustavo A. R. Silva" Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168503423402.19957.8400109691029717015.kvalo@kernel.org> Date: Thu, 25 May 2023 17:03:55 +0000 (UTC) "Gustavo A. R. Silva" wrote: > Zero-length arrays are deprecated, and we are moving towards adopting > C99 flexible-array members, instead. So, replace zero-length arrays > declarations alone in structs with the new DECLARE_FLEX_ARRAY() > helper macro. > > This helper allows for flexible-array members alone in structs. > > Link: https://github.com/KSPP/linux/issues/193 > Link: https://github.com/KSPP/linux/issues/288 > Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > Signed-off-by: Gustavo A. R. Silva > Reviewed-by: Simon Horman > Reviewed-by: Kees Cook > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 27044b57f8a5 wifi: wil6210: wmi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper -- https://patchwork.kernel.org/project/linux-wireless/patch/ZGKHM+MWFsuqzTjm@work/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches