mirror of https://github.com/torvalds/linux.git
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@debian.org> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://msgid.link/20240503103304.339489-1-leitao@debian.org |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| boot_loader.h | ||
| cfg80211.c | ||
| debug.c | ||
| debugfs.c | ||
| ethtool.c | ||
| fw.c | ||
| fw.h | ||
| fw_inc.c | ||
| interrupt.c | ||
| main.c | ||
| netdev.c | ||
| p2p.c | ||
| pcie_bus.c | ||
| pm.c | ||
| pmc.c | ||
| pmc.h | ||
| rx_reorder.c | ||
| trace.c | ||
| trace.h | ||
| txrx.c | ||
| txrx.h | ||
| txrx_edma.c | ||
| txrx_edma.h | ||
| wil6210.h | ||
| wil_crash_dump.c | ||
| wil_platform.c | ||
| wil_platform.h | ||
| wmi.c | ||
| wmi.h | ||