diff options
author | Breno Leitao <leitao@debian.org> | 2024-05-08 02:54:09 -0700 |
---|---|---|
committer | Kalle Valo <quic_kvalo@quicinc.com> | 2024-05-13 17:19:13 +0300 |
commit | 4f9206e8c2c15a3770e3eb0b9755a05d559fecea (patch) | |
tree | 5f090bcdde5424a4e99f77b82985ae597cd13005 /scripts/clang-tools | |
parent | 6d67d18014a8130defbca1972d7f0e0a8f8f259e (diff) |
wifi: ath12k: 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 ath12k_ext_irq_grp by converting it
into a pointer. Then use the leverage alloc_netdev_dummy() to allocate
the net_device object at ath12k_pci_ext_irq_config().
The free of the device occurs at ath12k_pci_free_ext_irq().
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/20240508095410.1923198-1-leitao@debian.org
Diffstat (limited to 'scripts/clang-tools')
0 files changed, 0 insertions, 0 deletions