1. 23 May, 2022 2 commits
    • Jakub Kicinski's avatar
      wifi: ath9k: silence array-bounds warning on GCC 12 · e9503298
      Jakub Kicinski authored
      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: default avatarKalle Valo <kvalo@kernel.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e9503298
    • Jakub Kicinski's avatar
      wifi: plfxlc: remove redundant NULL-check for GCC 12 · 0c7ab953
      Jakub Kicinski authored
      GCC is upset that we check the return value of plfxlc_usb_dev()
      even tho it can't be NULL:
      
      drivers/net/wireless/purelifi/plfxlc/usb.c: In function ‘resume’:
      drivers/net/wireless/purelifi/plfxlc/usb.c:840:20: warning: the comparison will always evaluate as ‘true’ for the address of ‘dev’ will never be NULL [-Waddress]
        840 |         if (!pl || !plfxlc_usb_dev(pl))
            |                    ^
      
      plfxlc_usb_dev() returns an address of one of the members of pl,
      so it's safe to drop these checks.
      Acked-by: default avatarKalle Valo <kvalo@kernel.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0c7ab953
  2. 22 May, 2022 38 commits