[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171507633406.3818005.5416249178784551917.kvalo@kernel.org>
Date: Tue, 7 May 2024 10:05:35 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Breno Leitao <leitao@...ian.org>
Cc: netdev@...r.kernel.org, merez@...eaurora.org, quic_ailizaro@...cinc.com,
linux-wireless@...r.kernel.org (open list:WILOCITY WIL6210 WIRELESS DRIVER),
linux-kernel@...r.kernel.org (open list)
Subject: Re: [PATCH wireless-next] wil6210: Do not use embedded netdev in
wil6210_priv
Breno Leitao <leitao@...ian.org> wrote:
> 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 wil6210_priv by converting it
> into a pointer. Then use the leverage alloc_netdev_dummy() to allocate
> the net_device object at wil_if_add(). The free of the device
> occurs at wil_if_remove().
>
> Link: https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ [1]
> Signed-off-by: Breno Leitao <leitao@...ian.org>
> Signed-off-by: Kalle Valo <quic_kvalo@...cinc.com>
Patch applied to ath-next branch of ath.git, thanks.
10d2b4f4aa0b wifi: wil6210: Do not use embedded netdev in wil6210_priv
--
https://patchwork.kernel.org/project/linux-wireless/patch/20240503103304.339489-1-leitao@debian.org/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists