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 E0665C433FE for ; Sun, 13 Nov 2022 07:38:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235199AbiKMHia (ORCPT ); Sun, 13 Nov 2022 02:38:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbiKMHi1 (ORCPT ); Sun, 13 Nov 2022 02:38:27 -0500 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D52FB85 for ; Sat, 12 Nov 2022 23:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1668325092; bh=/gqu1lsWyTjcfCcPlDZtf0bO+X7rcloTRYdvV60b/js=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=F6j3S/v+ZrbH1u2ep8mmyhsuXJbjKU90OlBPoCbXD7QETQdxQyEoKS25ASxiB+Yxx veeKmmQ2EDrdZ3A1ehTBZG5YTejc7slf6nR3cl2sHueKtNBGe6QBqcrldeb3YLXkIn iv8hAzdXBXq8gWVV7mL9FoRn+ZKOUhcdv4KWr25E= Received: by b-3.in.mailobj.net [192.168.90.13] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sun, 13 Nov 2022 08:38:12 +0100 (CET) X-EA-Auth: Pzg4gb5ovajsndCtuD3467EUPzyaWs80Yp+bfsZep4qberlSPWrmpI3lxe9viaQ0qdL+22fwfib7RcSfIlDxFp46GjhvThYV Date: Sun, 13 Nov 2022 13:08:09 +0530 From: Deepak R Varma To: "Gustavo A. R. Silva" Cc: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: staging/wlan-ng query: convert to flexible array member Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 13, 2022 at 12:33:43AM -0600, Gustavo A. R. Silva wrote: > On Tue, Nov 08, 2022 at 08:42:59PM +0530, Deepak R Varma wrote: > > > > Can you please suggest how should I approach correcting the zero element flex > > array implementation here? Can these structs be removed if they are unused? > > You can try using DECLARE_FLEX_ARRAY(). See this[1] patch. Thank you very much for the quick reply. The link you provided is very helpful. I will review it in detail and correct my patch proposal accordingly. ps: Also. thank you for including the cc list. I has already made a lot of noise with on the lists, so did not copy them intentionally in my email to you. ./drv > > -- > Gustavo > > [1] https://git.kernel.org/linus/6e4a53ee7989c8a2b9fc3b14cd90f6e2d613ca76 >