linux/drivers/net/ipa
Breno Leitao 1bdab0ee63 net: ipa: 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 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@kernel.org/

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-04-24 12:00:16 +01:00
..
data net: ipa: more include file cleanup 2024-04-18 13:01:05 +02:00
reg net: ipa: remove unneeded FILT_ROUT_HASH_EN definitions 2024-04-23 13:08:08 +02:00
gsi.c net: ipa: allocate dummy net_device dynamically 2024-04-24 12:00:16 +01:00
gsi.h net: ipa: allocate dummy net_device dynamically 2024-04-24 12:00:16 +01:00
gsi_private.h net: ipa: add some needed struct declarations 2024-04-18 13:01:05 +02:00
gsi_reg.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
gsi_reg.h net: ipa: add IPA v5.0 GSI register definitions 2023-03-22 22:44:00 -07:00
gsi_trans.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
gsi_trans.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_cmd.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_cmd.h net: ipa: fix two minor ipa_cmd problems 2024-04-23 13:08:08 +02:00
ipa_data.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_endpoint.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_endpoint.h net: ipa: fix two bogus argument names 2024-04-23 13:08:08 +02:00
ipa_gsi.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_gsi.h
ipa_interrupt.c net: ipa: call device_init_wakeup() earlier 2024-04-23 13:08:08 +02:00
ipa_interrupt.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_main.c net: ipa: kill ipa_version_supported() 2024-04-23 13:08:08 +02:00
ipa_mem.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_mem.h net: ipa: include some standard header files 2024-04-18 13:01:05 +02:00
ipa_modem.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_modem.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_power.c net: ipa: call device_init_wakeup() earlier 2024-04-23 13:08:08 +02:00
ipa_power.h net: ipa: call device_init_wakeup() earlier 2024-04-23 13:08:08 +02:00
ipa_qmi.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_qmi.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_qmi_msg.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_qmi_msg.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_reg.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_reg.h net: ipa: more include file cleanup 2024-04-18 13:01:05 +02:00
ipa_resource.c net: ipa: remove unneeded standard includes 2024-04-18 13:01:05 +02:00
ipa_resource.h
ipa_smp2p.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_smp2p.h net: ipa: pass a platform device to ipa_smp2p_init() 2024-03-04 11:44:41 +00:00
ipa_sysfs.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_sysfs.h net: ipa: eliminate unneeded struct declarations 2024-04-18 13:01:05 +02:00
ipa_table.c net: ipa: make ipa_table_hash_support() a real function 2024-04-23 13:08:08 +02:00
ipa_table.h net: ipa: make ipa_table_hash_support() a real function 2024-04-23 13:08:08 +02:00
ipa_uc.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_uc.h net: ipa: eliminate unneeded struct declarations 2024-04-18 13:01:05 +02:00
ipa_version.h net: ipa: kill ipa_version_supported() 2024-04-23 13:08:08 +02:00
Kconfig net: ipa: add an interconnect dependency 2022-03-02 22:14:05 -08:00
Makefile net: ipa: add IPA v5.5 configuration data 2023-11-24 12:18:55 +00:00
reg.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00