Re: [PATCH wireless-next] wifi: rtw88: Un-embed dummy device
From: Ping-Ke Shih
Date: Thu May 09 2024 - 02:18:46 EST
Breno Leitao <leitao@xxxxxxxxxx> 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 the private struct by converting it
> into a pointer. Then use the leverage the new alloc_netdev_dummy()
> helper to allocate and initialize dummy devices.
>
> [1] https://lore.kernel.org/all/20240229225910.79e224cf@xxxxxxxxxx/
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
> Tested-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
d0bcb10e7b94 wifi: rtw88: Un-embed dummy device
---
https://github.com/pkshih/rtw.git