linux_dsm_epyc7002/drivers/net/wireless/ath/wil6210
Arnd Bergmann 04a4d34163 wil6210: avoid gcc-10 zero-length-bounds warning
gcc-10 warns about accesses inside of a zero-length array:

drivers/net/wireless/ath/wil6210/cfg80211.c: In function 'wil_cfg80211_scan':
drivers/net/wireless/ath/wil6210/cfg80211.c:970:23: error: array subscript 255 is outside the bounds of an interior zero-length array 'struct <anonymous>[0]' [-Werror=zero-length-bounds]
  970 |   cmd.cmd.channel_list[cmd.cmd.num_channels++].channel = ch - 1;
      |   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/ath/wil6210/wil6210.h:17,
                 from drivers/net/wireless/ath/wil6210/cfg80211.c:11:
drivers/net/wireless/ath/wil6210/wmi.h:477:4: note: while referencing 'channel_list'
  477 |  } channel_list[0];
      |    ^~~~~~~~~~~~

Turn this into a flexible array to avoid the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200505143332.1398524-1-arnd@arndb.de
2020-05-11 15:33:25 +03:00
..
boot_loader.h
cfg80211.c wil6210: add support for set_cqm_rssi_config 2019-12-19 18:16:54 +02:00
debug.c
debugfs.c
ethtool.c wil6210: reject unsupported coalescing params 2020-03-06 22:45:55 -08:00
fw_inc.c
fw.c
fw.h
interrupt.c
Kconfig
main.c wil6210: use true,false for bool variable 2020-01-26 12:19:14 +02:00
Makefile
netdev.c
p2p.c
pcie_bus.c
pm.c
pmc.c
pmc.h
rx_reorder.c
trace.c
trace.h
txrx_edma.c
txrx_edma.h wil6210: fix MID valid bits in Rx status message 2019-12-19 18:16:31 +02:00
txrx.c wil6210: use true,false for bool variable 2020-01-26 12:19:14 +02:00
txrx.h
wil6210.h wil6210: add support for set_cqm_rssi_config 2019-12-19 18:16:54 +02:00
wil_crash_dump.c wil6210: take mem_lock for writing in crash dump collection 2019-12-19 18:15:56 +02:00
wil_platform.c
wil_platform.h
wmi.c wil6210: use true,false for bool variable 2020-01-26 12:19:14 +02:00
wmi.h wil6210: avoid gcc-10 zero-length-bounds warning 2020-05-11 15:33:25 +03:00