From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1C057B for ; Sun, 13 Nov 2022 07:38:21 +0000 (UTC) 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: Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 >