1. 09 Jun, 2020 1 commit
    • Arnd Bergmann's avatar
      iwlwifi: mvm: fix gcc-10 zero-length-bounds warning · 9cec1d54
      Arnd Bergmann authored
      gcc-10 complains when a zero-length array is accessed:
      
      drivers/net/wireless/intel/iwlwifi/mvm/tx.c: In function 'iwl_mvm_rx_ba_notif':
      drivers/net/wireless/intel/iwlwifi/mvm/tx.c:1929:17: warning: array subscript 9 is outside the bounds of an interior zero-length array 'struct iwl_mvm_compressed_ba_tfd[0]' [-Wzero-length-bounds]
       1929 |     &ba_res->tfd[i];
            |      ~~~~~~~~~~~^~~
      In file included from drivers/net/wireless/intel/iwlwifi/mvm/../fw/api/tdls.h:68,
                       from drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h:68,
                       from drivers/net/wireless/intel/iwlwifi/mvm/sta.h:73,
                       from drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:83,
                       from drivers/net/wireless/intel/iwlwifi/mvm/tx.c:72:
      drivers/net/wireless/intel/iwlwifi/mvm/../fw/api/tx.h:769:35: note: while referencing 'tfd'
        769 |  struct iwl_mvm_compressed_ba_tfd tfd[0];
            |                                   ^~~
      
      Change this structure to use a flexible-array member for 'tfd' instead,
      along with the various structures using an zero-length ieee80211_hdr
      array that do not show warnings today but might be affected by similar
      issues in the future.
      
      Fixes: 6f68cc36 ("iwlwifi: api: annotate compressed BA notif array sizes")
      Fixes: c46e7724 ("iwlwifi: mvm: support new BA notification response")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20200430213101.135134-3-arnd@arndb.deSigned-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
      9cec1d54
  2. 08 Jun, 2020 4 commits
  3. 05 Jun, 2020 1 commit
  4. 01 Jun, 2020 1 commit
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 1806c13d
      David S. Miller authored
      xdp_umem.c had overlapping changes between the 64-bit math fix
      for the calculation of npgs and the removal of the zerocopy
      memory type which got rid of the chunk_size_nohdr member.
      
      The mlx5 Kconfig conflict is a case where we just take the
      net-next copy of the Kconfig entry dependency as it takes on
      the ESWITCH dependency by one level of indirection which is
      what the 'net' conflicting change is trying to ensure.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1806c13d
  5. 31 May, 2020 33 commits