[ath6kl:pending 41/67] drivers/net/wireless/ath/ath10k/mac.c:3804:4: warning: 'is_mgmt' may be used uninitialized in this function
kbuild test robot
fengguang.wu at intel.com
Sun Mar 6 10:48:23 PST 2016
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head: 76c4c513df5aa9cd9e019b463d8f3d38d1cd572e
commit: 6421969f248fdf9d8cd38353a617ed7cc5ddab94 [41/67] ath10k: refactor tx pending management
config: x86_64-randconfig-s5-03070223 (attached as .config)
reproduce:
git checkout 6421969f248fdf9d8cd38353a617ed7cc5ddab94
# save the attached .config to linux build tree
make ARCH=x86_64
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
drivers/net/wireless/ath/ath10k/mac.c: In function 'ath10k_mac_op_tx':
>> drivers/net/wireless/ath/ath10k/mac.c:3804:4: warning: 'is_mgmt' may be used uninitialized in this function [-Wmaybe-uninitialized]
ath10k_htt_tx_dec_pending(htt, is_mgmt);
^
vim +/is_mgmt +3804 drivers/net/wireless/ath/ath10k/mac.c
3788 if (ret) {
3789 ath10k_warn(ar, "failed to increase tx pending count: %d, dropping\n",
3790 ret);
3791 spin_unlock_bh(&ar->htt.tx_lock);
3792 ieee80211_free_txskb(ar->hw, skb);
3793 return;
3794 }
3795
3796 spin_unlock_bh(&ar->htt.tx_lock);
3797 }
3798
3799 ret = ath10k_mac_tx(ar, vif, sta, txmode, txpath, skb);
3800 if (ret) {
3801 ath10k_warn(ar, "failed to transmit frame: %d\n", ret);
3802 if (is_htt) {
3803 spin_lock_bh(&ar->htt.tx_lock);
> 3804 ath10k_htt_tx_dec_pending(htt, is_mgmt);
3805 spin_unlock_bh(&ar->htt.tx_lock);
3806 }
3807 return;
3808 }
3809 }
3810
3811 /* Must not be called with conf_mutex held as workers can use that also. */
3812 void ath10k_drain_tx(struct ath10k *ar)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 23647 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20160307/76dac53a/attachment-0001.obj>
More information about the ath10k
mailing list