]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: ath9k: silence array-bounds warning on GCC 12
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 May 2022 19:43:14 +0000 (12:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 May 2022 00:23:05 +0000 (17:23 -0700)
commit750f6cd478e93eaa01b6fa7bb5f048a5dcddb0b2
treeb7d515f4dcb15ec18c0a226b1e505eacf44afeb2
parent844c9d6c0d19a790152d4e5e72d83fcbbbed42c8
wifi: ath9k: silence array-bounds warning on GCC 12

GCC 12 says:

drivers/net/wireless/ath/ath9k/mac.c: In function ‘ath9k_hw_resettxqueue’:
drivers/net/wireless/ath/ath9k/mac.c:373:22: warning: array subscript 32 is above array bounds of ‘struct ath9k_tx_queue_info[10]’ [-Warray-bounds]
  373 |         qi = &ah->txq[q];
      |               ~~~~~~~^~~

I don't know where it got the 32 from, relegate the warning to W=1+.

Acked-by: Kalle Valo <kvalo@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wireless/ath/ath9k/Makefile