Re: [PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-11-10 Thread Kalle Valo
Arnd Bergmann wrote: > gcc-10 shows a false-positive warning with CONFIG_KASAN: > > drivers/net/wireless/ath/ath9k/dynack.c: In function > 'ath_dynack_sample_tx_ts': > include/linux/etherdevice.h:290:14: warning: writing 4 bytes into a region of > size 0 [-Wstringop-overflow=] > 290 | *(u32

Re: [PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-11-07 Thread Arnd Bergmann
On Sat, Nov 7, 2020 at 12:21 PM Kalle Valo wrote: > Johannes Berg writes: > > On Mon, 2020-11-02 at 18:26 +0200, Kalle Valo wrote: > >> Arnd Bergmann writes: > >> Isn't there a better way to handle this? I really would not want > >> checking for GCC versions become a common approach in drivers.

Re: [PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-11-07 Thread Kalle Valo
Johannes Berg writes: > On Mon, 2020-11-02 at 18:26 +0200, Kalle Valo wrote: >> Arnd Bergmann writes: >> >> > From: Arnd Bergmann >> > >> > gcc-10 shows a false-positive warning with CONFIG_KASAN: >> > >> > drivers/net/wireless/ath/ath9k/dynack.c: In function >> > 'ath_dynack_sample_tx_ts':

Re: [PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-11-02 Thread Arnd Bergmann
On Mon, Nov 2, 2020 at 7:01 PM Johannes Berg wrote: > On Mon, 2020-11-02 at 18:26 +0200, Kalle Valo wrote: > > Arnd Bergmann writes: > > > From: Arnd Bergmann > > > > Isn't there a better way to handle this? I really would not want > > checking for GCC versions become a common approach in driver

Re: [PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-11-02 Thread Johannes Berg
On Mon, 2020-11-02 at 18:26 +0200, Kalle Valo wrote: > Arnd Bergmann writes: > > > From: Arnd Bergmann > > > > gcc-10 shows a false-positive warning with CONFIG_KASAN: > > > > drivers/net/wireless/ath/ath9k/dynack.c: In function > > 'ath_dynack_sample_tx_ts': > > include/linux/etherdevice.h:2

Re: [PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-11-02 Thread Kalle Valo
Arnd Bergmann writes: > From: Arnd Bergmann > > gcc-10 shows a false-positive warning with CONFIG_KASAN: > > drivers/net/wireless/ath/ath9k/dynack.c: In function > 'ath_dynack_sample_tx_ts': > include/linux/etherdevice.h:290:14: warning: writing 4 bytes into a region of > size 0 [-Wstringop-ov

[PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-10-26 Thread Arnd Bergmann
From: Arnd Bergmann gcc-10 shows a false-positive warning with CONFIG_KASAN: drivers/net/wireless/ath/ath9k/dynack.c: In function 'ath_dynack_sample_tx_ts': include/linux/etherdevice.h:290:14: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 290 | *(u32 *)dst = *(const