Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1201757rwd; Thu, 25 May 2023 09:15:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mXDCVFUgDIXHGvnZx2dgZT3Xy4hfVBtVlP4B65LXKbFd69+y3jxX5Jo/TH4pzfn1kUJxZ X-Received: by 2002:a05:6a00:10c6:b0:634:7ba3:d140 with SMTP id d6-20020a056a0010c600b006347ba3d140mr8646172pfu.15.1685031338780; Thu, 25 May 2023 09:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685031338; cv=none; d=google.com; s=arc-20160816; b=A27up1eFirVv/lI9YfMeRjtsJeFhzB5N687yS8I5eRrOQQMYMX1sYpCa5rXKjVSRTO KJOD3us4dkW1pRKDjEU2Zd442t0WlSCHisODGo1qYWKy0DzJe6TCXXith8LsZGSLeZ43 BdAwti1yp4odfFNDolIfwNRcBnQ35Bx+/8sQhFDET7bIAY88o0H2lw+Frrp86Aa+0PRW Y+k8FCFXBzSVq2a4mbhAnpSuar2eM2SuOBHpM70lziA2h8GVI2AL3lFPPfq6W9nyHwox +ECywZ7B85596GCIa5aqCxR8lf6qo1HUoKWubtNndX8Mfhmqx5Vt137W2MhYpskUwoWg 91kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=r+J7ILs5GbFEfFijW8+cNNaUKVtTmEVxVm1tGbpu3V8=; b=enyKOTMVS5gzkielZVcNRw/o8WsGo35+IyHeMSukfYo2+ff/c1va1yo+tFuxWurULE YK6UXG+DjP3NWVHc86EPcPjkMh8DyxkrGWP5sOKtVXdb5s2GuYbBxfUMhsLSvKXhCw1L qDs68D4dF0NfnOvk/Bw1fWC/cvT7mPAtjDqyf0FbmW5zSF9pax6fv7Sm444+azeKeslA 8JI7RHLJTz1pyWwtcI7g9jk2HkXW0ko4pCWIzGuECVDxQD6kVoSgYMK+6D5bdbq9o/i5 BFF4T7wi+S2zCE4zo4DmsMWzCRCiu3fCOMyMk7FO70E3TlPRyBYOZ9YP+vcD3S0YZR54 XKzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=naCMRFK9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i29-20020a056a00005d00b0064f4eb8dd2dsi1779152pfk.204.2023.05.25.09.15.28; Thu, 25 May 2023 09:15:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=naCMRFK9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235080AbjEYQOh (ORCPT + 62 others); Thu, 25 May 2023 12:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234629AbjEYQOf (ORCPT ); Thu, 25 May 2023 12:14:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83724197; Thu, 25 May 2023 09:14:28 -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 2026A60B01; Thu, 25 May 2023 16:14:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EFA0C433EF; Thu, 25 May 2023 16:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685031267; bh=Pay7zXnTH9PqGCRlQFGcYsvLrrwOtY59XBAuD/yITWU=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=naCMRFK9mnn8k6imfaNYQMAKxQFyo8rKPsRbQAN7KLviL6Yf9aFbHRNPEGgdP2U0T gFTQV2tLgHX+vretzWvrMLHmHdGxsFgsSDcVj07SC/lNx9Fw8m2rL4/g1aZ22c8FKt Znuul1BYYXbHcKaiAG8OiBdnAT+vfmgrkJqJyRR4fXQJ1ZnQYL6FjKxmy/LcgNAmG1 RYEtK9WGylhwn6sjVIon+J8JCGjyjP8/KonStqTzYuK9FaDytS6ORarYzoxxRu91bc 5usAHu2uZ7oOAMVg4cKez5pneUX8vNAD5VDFq3RhqhlJGnZUVMbafnE9wmbmqlTG80 iRavCo7+LBZqA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: wifi: rtw89: use flexible array member in rtw89_btc_btf_tlv From: Kalle Valo In-Reply-To: <20230523113241.2772811-1-arnd@kernel.org> References: <20230523113241.2772811-1-arnd@kernel.org> To: Arnd Bergmann Cc: Ping-Ke Shih , Arnd Bergmann , Ching-Te Ku , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168503126425.22756.6147214283956787608.kvalo@kernel.org> Date: Thu, 25 May 2023 16:14:25 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Arnd Bergmann wrote: > From: Arnd Bergmann > > struct rtw89_btc_btf_tlv contains a one-byte member that is intended as a > flexible array: > > In function 'fortify_memcpy_chk', > inlined from '_append_tdma' at drivers/net/wireless/realtek/rtw89/coex.c:1579:3: > include/linux/fortify-string.h:583:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning] > 583 | __write_overflow_field(p_size_field, size); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Make this actually use a flexible array to let the compiler understand. > > Signed-off-by: Arnd Bergmann > Reviewed-by: Ping-Ke Shih > Reviewed-by: Gustavo A. R. Silva Patch applied to wireless-next.git, thanks. 47e612268ea0 wifi: rtw89: use flexible array member in rtw89_btc_btf_tlv -- https://patchwork.kernel.org/project/linux-wireless/patch/20230523113241.2772811-1-arnd@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches