From patchwork Mon Nov 14 23:00:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 13042891 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 A33F2C4332F for ; Mon, 14 Nov 2022 23:01:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237711AbiKNXBH (ORCPT ); Mon, 14 Nov 2022 18:01:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237062AbiKNXBG (ORCPT ); Mon, 14 Nov 2022 18:01:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17E1DF3A; Mon, 14 Nov 2022 15:01:04 -0800 (PST) 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 4C0F861484; Mon, 14 Nov 2022 23:01:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E285AC433D6; Mon, 14 Nov 2022 23:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668466863; bh=bgsf9poCZpz4u0fHQGh5vWi1vwxI1XHcpCqXFy31o5k=; h=Date:From:To:Cc:Subject:From; b=pijHEwz8nAQkQVXZx5cPZVRiTNbDf751haQK+oXa+lqLcKbVRu6haxrRmKosiWQe3 XG+D8QF/eZSRhq7IOenJ3XzGnos7VhN0zn9o3UFv8s0PJxgFP3XL7/Q1KPCrFroY8i 1DuH6KPTArsaYNGRgWR83dl5aVXC6N9fZ7taKO/FbTVcWCKDCPBURRYxj/HRkD6Hpg tY6zr+uMNACw8Xe0x4GVuR8iposzSMbXeWzzLbn+yyGDU3rS9BPLx1sPo0LtqRYBsv ylL8SLWWxHMxdEJ4CFtzQptnWKnU7RpwbdZK9Rt7HG5cw6OiiLu7nurO3CJg7SYfX4 jD/DRLu+aP2Aw== Date: Mon, 14 Nov 2022 17:00:46 -0600 From: "Gustavo A. R. Silva" To: Arend van Spriel , Franky Lin , Hante Meuleman , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH 0/2][next] wifi: brcmfmac: Replace one-element array with flexible-array member Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org Hi! This series aims to replace a one-element array with flexible-array member in drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -fstrict-flex-arrays=3 [1]. Link: https://www.kernel.org/doc/html/v5.10/process/deprecated.html#zero-length-and-one-element-arrays Link: https://github.com/KSPP/linux/issues/79 Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1] Gustavo A. R. Silva (2): wifi: brcmfmac: Replace one-element array with flexible-array member wifi: brcmfmac: Use struct_size() and array_size() in code ralated to struct brcmf_gscan_config .../net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h | 2 +- drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)