Return-path: Received: from mail27.static.mailgun.info ([104.130.122.27]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWnXt-0000Z5-6Z for ath10k@lists.infradead.org; Thu, 07 May 2020 20:55:09 +0000 MIME-Version: 1.0 Date: Thu, 07 May 2020 13:54:56 -0700 From: Rajkumar Manoharan Subject: Re: [PATCH v2] ath10k: Replace zero-length array with flexible-array In-Reply-To: <20200507041127.GA31587@embeddedor> References: <20200507041127.GA31587@embeddedor> Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: "Gustavo A. R. Silva" Cc: "Gustavo A. R. Silva" , linux-wireless-owner@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, "David S. Miller" , Kalle Valo On 2020-05-06 21:11, Gustavo A. R. Silva wrote: [...] > static inline struct htt_stats_conf_item *htt_stats_conf_next_item( > @@ -1674,7 +1674,7 @@ struct htt_tx_fetch_ind { > __le16 num_resp_ids; > __le16 num_records; > struct htt_tx_fetch_record records[0]; > - __le32 resp_ids[0]; /* ath10k_htt_get_tx_fetch_ind_resp_ids() */ > + __le32 resp_ids[]; /* ath10k_htt_get_tx_fetch_ind_resp_ids() */ > } __packed; > Missed to handle records[0]. -Rajkumar _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k