[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87pluhv931.fsf@kernel.org>
Date: Mon, 22 Apr 2024 16:08:18 +0300
From: Kalle Valo <kvalo@...nel.org>
To: Breno Leitao <leitao@...ian.org>
Cc: aleksander.lobakin@...el.com, kuba@...nel.org, davem@...emloft.net,
pabeni@...hat.com, edumazet@...gle.com, elder@...nel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, nbd@....name,
sean.wang@...iatek.com, Mark-MC.Lee@...iatek.com, lorenzo@...nel.org,
taras.chornyi@...ision.eu, ath11k@...ts.infradead.org,
ath10k@...ts.infradead.org, linux-wireless@...r.kernel.org,
geomatsi@...il.com, Jeff Johnson <jjohnson@...nel.org>,
quic_jjohnson@...cinc.com, leon@...nel.org,
dennis.dalessandro@...nelisnetworks.com, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, bpf@...r.kernel.org, idosch@...sch.org,
angelogioacchino.delregno@...labora.com, matthias.bgg@...il.com
Subject: Re: [PATCH net-next v7 09/10] wifi: ath10k: allocate dummy
net_device dynamically
Breno Leitao <leitao@...ian.org> 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 <leitao@...ian.org>
I assume this goes via net-next:
Acked-by: Kalle Valo <kvalo@...nel.org>
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists