From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 109BCC43217 for ; Wed, 6 Apr 2022 11:53:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbiDFLzu (ORCPT ); Wed, 6 Apr 2022 07:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbiDFLzW (ORCPT ); Wed, 6 Apr 2022 07:55:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82307B0A6F; Wed, 6 Apr 2022 00:18:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EF60561B03; Wed, 6 Apr 2022 07:18:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B81BC385A1; Wed, 6 Apr 2022 07:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649229527; bh=UR4JAaBQa61qlZC04TBcieCdJUeGJ8gH4nQ8PLOLCUU=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=QwGs9sdihyVKnkQlY11TgpnX3p/Plv2QgabFyIta3ksfqmFjgU71HGGdmD4BdlRNn OQSzPea02kxgVo/oiFAP9Uglk8qo6hjrnTsJAOtq7g+iiid+StjMBzxpj/y2l1HaDM iyNpvNZ3U3po2kiTCbUxMO7A0gFZg6PuS2EtPnZwqYusoEwR94dsW25egfh4gUu4KH qvmbYOrdATnYmr+hss0VY3k/AoY9lVEPd3czSHdtQcpbw3p+/hvrKGrFRwbYQanXNP AH2DY87QceGJEMNo6GrYwMLFuR+xMd73G2533wKkUvTdAE6QaK3WbgqrWjQVD5dwab n++l92b1/vw5w== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH][next] iwlwifi: fw: Replace zero-length arrays with flexible-array members From: Kalle Valo In-Reply-To: <20220216195015.GA904148@embeddedor> References: <20220216195015.GA904148@embeddedor> To: "Gustavo A. R. Silva" Cc: Luca Coelho , "David S. Miller" , Jakub Kicinski , 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.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <164922952168.27650.118624078658922574.kvalo@kernel.org> Date: Wed, 6 Apr 2022 07:18:45 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org "Gustavo A. R. Silva" wrote: > There is a regular need in the kernel to provide a way to declare > having a dynamically sized set of trailing elements in a structure. > Kernel code should always use “flexible array members”[1] for these > cases. The older style of one-element or zero-length arrays should > no longer be used[2]. > > [1] https://en.wikipedia.org/wiki/Flexible_array_member > [2] https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-length-and-one-element-arrays > > Link: https://github.com/KSPP/linux/issues/78 > Signed-off-by: Gustavo A. R. Silva > Reviewed-by: Kees Cook > Acked-by: Luca Coelho Patch applied to wireless-next.git, thanks. 34e63cd5ba29 iwlwifi: fw: Replace zero-length arrays with flexible-array members -- https://patchwork.kernel.org/project/linux-wireless/patch/20220216195015.GA904148@embeddedor/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches