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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A83B6C4345F for ; Mon, 22 Apr 2024 13:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:In-Reply-To: Date:References:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+O2eKfUs4Doj2XU5uDqQfQ2UCAcdMR+U2RVvLZbXRLo=; b=LV6RxK5CT69lRL HJXKX6QBaA5eRJ0cSSBpo+wfdvykA7ITuyJm0kMJ6hZmT+ZEzq2EVF3P+pTUBiRkQtxLxjw70VhPr jxMpifNes1cXsVz2IO8ipu1SmXWfxLkuRlOEukkdB0BH7iKd6rxTxjjoyH2Y0K+bRtmOCPjBTNN2o VLZd345tiGSHCJoLDE4wpVO+OrQVHYdmSwxc3aZ4oi07RQsvAEBipAiohdup8K2F7lQlzf2yGAUBB A/WzGzmJ2hpXev/qkotyxfCEjs5Nc0lU1X6djEcdzvUHQsynEe+rzs94ZUthDMh+/QIxRo2k6ppfK vx1Mz+Dq7qvkra0SB3VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rytPR-0000000Dfq0-1ESu; Mon, 22 Apr 2024 13:08:37 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rytPG-0000000Dfkk-3UMR; Mon, 22 Apr 2024 13:08:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id C730460C7B; Mon, 22 Apr 2024 13:08:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1CC6C113CC; Mon, 22 Apr 2024 13:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713791305; bh=nznyQx8/p+3KHBmfBdZ9fWAd5pFk+wk0RpKca9y7nEY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BWWeePq7vCnYC1rDnhl46rbfsAP83k7q/x3Q3lUzGSjnUMUQIhUqsdwSj7B+QHsUT TJxNZwu/It8/kfuDOxr+7fR/Gxuuekf9dThdZF6BE1JItRKXMPkSrq3frGiVH1r0xW L8fuputkj427+VfwNLdg4HGOQwxsr2FkSzbe/D7jbA7UK2aL7WgyRhtPTRyS1GEDSF U/R13zM6yHGfF4Ar2391FPP3Oe3dxjEg9FmMrVpke8K22WL35HrwSnsJUUE5HDiQ93 e9/YdctW7fGJnrZV7fkKjq+C4Ril6Qjq7t2VMHBijsJBRnEGzXkukWwVx+zT+XCVU/ HDX6k5rLN9hLw== From: Kalle Valo To: Breno Leitao Cc: aleksander.lobakin@intel.com, kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, elder@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, nbd@nbd.name, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, lorenzo@kernel.org, taras.chornyi@plvision.eu, ath11k@lists.infradead.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, geomatsi@gmail.com, Jeff Johnson , quic_jjohnson@quicinc.com, leon@kernel.org, dennis.dalessandro@cornelisnetworks.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, idosch@idosch.org, angelogioacchino.delregno@collabora.com, matthias.bgg@gmail.com Subject: Re: [PATCH net-next v7 09/10] wifi: ath10k: allocate dummy net_device dynamically References: <20240422123921.854943-1-leitao@debian.org> <20240422123921.854943-10-leitao@debian.org> Date: Mon, 22 Apr 2024 16:08:18 +0300 In-Reply-To: <20240422123921.854943-10-leitao@debian.org> (Breno Leitao's message of "Mon, 22 Apr 2024 05:39:02 -0700") Message-ID: <87pluhv931.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240422_060826_942681_1C01B1C7 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Breno Leitao writes: > Embedding net_device into structures prohibits the usage of flexible > arrays in the net_device structure. For more details, see the discussion > at [1]. > > Un-embed the net_device from struct ath10k by converting it > into a pointer. Then use the leverage alloc_netdev() to allocate the > net_device object at ath10k_core_create(). The free of the device occurs > at ath10k_core_destroy(). > > [1] https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ > > Signed-off-by: Breno Leitao I assume this goes via net-next: Acked-by: Kalle Valo -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel