aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2024-04-22 12:39:02 +0000
committerDavid S. Miller <[email protected]>2024-04-24 11:00:17 +0000
commit57738dab12d95d72fed3d9697082ca50033cee89 (patch)
treeefbfcdcb7104c0bcc6b67875f4d9a98c96006420 /drivers/net/ethernet/intel/ice/ice_main.c
parentwifi: qtnfmac: Use netdev dummy allocator helper (diff)
downloadkernel-57738dab12d95d72fed3d9697082ca50033cee89.tar.gz
kernel-57738dab12d95d72fed3d9697082ca50033cee89.zip
wifi: ath10k: allocate dummy net_device dynamically
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/[email protected]/ Signed-off-by: Breno Leitao <[email protected]> Acked-by: Kalle Valo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions