tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head:   9bf2356413bc7e5f5bece0ee6bf8d7320a864ecb
commit: 166d98caf5eb0b907f9ce42ceed0b3a11baf4b49 [9/30] ath10k: add debugfs 
support to dump per sta tx stats
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 166d98caf5eb0b907f9ce42ceed0b3a11baf4b49
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   drivers/net/wireless/ath/ath10k/debugfs_sta.c: In function 
'ath10k_dbg_sta_dump_tx_stats':
>> drivers/net/wireless/ath/ath10k/debugfs_sta.c:714:1: warning: the frame size 
>> of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    }
    ^

vim +714 drivers/net/wireless/ath/ath10k/debugfs_sta.c

   674  
   675  static ssize_t ath10k_dbg_sta_dump_tx_stats(struct file *file,
   676                                              char __user *user_buf,
   677                                              size_t count, loff_t *ppos)
   678  {
   679          struct ieee80211_sta *sta = file->private_data;
   680          struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv;
   681          struct ath10k *ar = arsta->arvif->ar;
   682          char *buf;
   683          static const char *str_name[ATH10K_STATS_TYPE_MAX] = {
   684                                  "succ", "fail", "retry", "ampdu"};
   685          int len = 0, i, j, retval = 0, size = 2 * 1024;
   686  
   687          buf = kzalloc(size, GFP_KERNEL);
   688          if (!buf)
   689                  return -ENOMEM;
   690  
   691          mutex_lock(&ar->conf_mutex);
   692  
   693          for (i = 0; i < ATH10K_STATS_TYPE_MAX; i++)
   694                  for (j = 0; j < ATH10K_COUNTER_TYPE_MAX; j++)
   695                          len = ath10k_dump_htt_tx_stats(buf, len, size,
   696                                                         
arsta->tx_stats->stats[i],
   697                                                         j, str_name[i]);
   698  
   699          len += scnprintf(buf + len, size - len,
   700                           "\nTX duration\n %llu usecs\n",
   701                           arsta->tx_stats->tx_duration);
   702          len += scnprintf(buf + len, size - len,
   703                          "BA fails\n %llu\n", arsta->tx_stats->ba_fails);
   704          len += scnprintf(buf + len, size - len,
   705                          "ack fails\n %llu\n", 
arsta->tx_stats->ack_fails);
   706  
   707          if (len > size)
   708                  len = size;
   709          retval = simple_read_from_buffer(user_buf, count, ppos, buf, 
len);
   710          kfree(buf);
   711  
   712          mutex_unlock(&ar->conf_mutex);
   713          return retval;
 > 714  }
   715  

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

Reply via email to