Hi Liad,

[auto build test WARNING on wireless-drivers-next/master]
[also build test WARNING on v4.8-rc4 next-20160825]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for 
convenience) to record what (public, well-known) commit your patch series was 
built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    
https://github.com/0day-ci/linux/commits/Luca-Coelho/iwlwifi-mvm-allow-same-PN-for-de-aggregated-AMSDU/20160830-130755
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git 
master
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.

All warnings (new ones prefixed by >>):

   drivers/net/wireless/intel/iwlwifi/mvm/sta.c: In function 
'iwl_mvm_sta_alloc_queue':
>> drivers/net/wireless/intel/iwlwifi/mvm/sta.c:517:21: warning: array 
>> subscript is below array bounds [-Warray-bounds]
     if (mvm->queue_info[queue].status == IWL_MVM_QUEUE_RECONFIGURING) {
                        ^

vim +517 drivers/net/wireless/intel/iwlwifi/mvm/sta.c

   501          /* Priority 4a: No BE nor BK - use VI if exists */
   502          else if (ac_to_queue[IEEE80211_AC_VI] != 
IEEE80211_INVAL_HW_QUEUE)
   503                  queue = ac_to_queue[IEEE80211_AC_VI];
   504          /* Priority 4b: No BE, BK nor VI - use VO if exists */
   505          else if (ac_to_queue[IEEE80211_AC_VO] != 
IEEE80211_INVAL_HW_QUEUE)
   506                  queue = ac_to_queue[IEEE80211_AC_VO];
   507  
   508          /* Make sure queue found (or not) is legal */
   509          if (!iwl_mvm_is_dqa_data_queue(mvm, queue) &&
   510              !iwl_mvm_is_dqa_mgmt_queue(mvm, queue) &&
   511              (queue != IWL_MVM_DQA_BSS_CLIENT_QUEUE)) {
   512                  IWL_ERR(mvm, "No DATA queues available to share\n");
   513                  queue = -ENOSPC;
   514          }
   515  
   516          /* Make sure the queue isn't in the middle of being 
reconfigured */
 > 517          if (mvm->queue_info[queue].status == 
 > IWL_MVM_QUEUE_RECONFIGURING) {
   518                  IWL_ERR(mvm,
   519                          "TXQ %d is in the middle of re-config - try 
again\n",
   520                          queue);
   521                  queue = -1;
   522          }
   523  
   524          return queue;
   525  }

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to