Re: [PATCH net-next 2/2] ath10k: fix ath10k_pci struct layout

2020-05-11 Thread Arnd Bergmann
On Mon, May 11, 2020 at 2:17 PM Kalle Valo wrote: > > Kalle Valo writes: > >> > >> Change it to a flexible-array member and move it last again to > >> make it work correctly, prevent the same thing from happening > >> again (all compilers warn about flexible-array members in the > >> middle of a

Re: [PATCH net-next 2/2] ath10k: fix ath10k_pci struct layout

2020-05-11 Thread Kalle Valo
Kalle Valo writes: > Arnd Bergmann writes: > >> gcc-10 correctly points out a bug with a zero-length array in >> struct ath10k_pci: >> >> drivers/net/wireless/ath/ath10k/ahb.c: In function 'ath10k_ahb_remove': >> drivers/net/wireless/ath/ath10k/ahb.c:30:9: error: array subscript 0 >> is outside

Re: [PATCH net-next 2/2] ath10k: fix ath10k_pci struct layout

2020-05-11 Thread Kalle Valo
Arnd Bergmann writes: > gcc-10 correctly points out a bug with a zero-length array in > struct ath10k_pci: > > drivers/net/wireless/ath/ath10k/ahb.c: In function 'ath10k_ahb_remove': > drivers/net/wireless/ath/ath10k/ahb.c:30:9: error: array subscript 0 > is outside the bounds of an interior zero

[PATCH net-next 2/2] ath10k: fix ath10k_pci struct layout

2020-05-09 Thread Arnd Bergmann
gcc-10 correctly points out a bug with a zero-length array in struct ath10k_pci: drivers/net/wireless/ath/ath10k/ahb.c: In function 'ath10k_ahb_remove': drivers/net/wireless/ath/ath10k/ahb.c:30:9: error: array subscript 0 is outside the bounds of an interior zero-length array 'struct ath10k_ahb[0