tree:
https://github.com/nbd168/wireless mt76
head: 273a367e2d8fd34ef5e71a135e5368ea1e76b6d2
commit: 98b8539a54f2822f4542d0396e07a3d65ee8529f [11/33] mt76: mt7915: add support for tx
status reporting
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://github.com/nbd168/wireless/commit/98b8539a54f2822f4542d0396e07a3d...
git remote add nbd168-wireless
https://github.com/nbd168/wireless
git fetch --no-tags nbd168-wireless mt76
git checkout 98b8539a54f2822f4542d0396e07a3d65ee8529f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1222:29: sparse:
sparse: cast to restricted __le32
> drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1222:23: sparse: sparse: restricted
__le32 degrades to integer
vim +1222 drivers/net/wireless/mediatek/mt76/mt7915/mac.c
1206
1207 static bool
1208 mt7915_mac_add_txs_skb(struct mt7915_dev *dev, struct mt76_wcid *wcid, int pid,
1209 __le32 *txs_data)
1210 {
1211 struct mt76_dev *mdev = &dev->mt76;
1212 struct ieee80211_tx_info *info;
1213 struct sk_buff_head list;
1214 struct sk_buff *skb;
1215
1216 mt76_tx_status_lock(mdev, &list);
1217 skb = mt76_tx_status_skb_get(mdev, wcid, pid, &list);
1218 if (!skb)
1219 goto out;
1220
1221 info = IEEE80211_SKB_CB(skb);
1222 if (!(txs_data[0] & le32_to_cpu(MT_TXS0_ACK_ERROR_MASK)))
1223 info->flags |= IEEE80211_TX_STAT_ACK;
1224
1225 info->status.ampdu_len = 1;
1226 info->status.ampdu_ack_len = !!(info->flags &
1227 IEEE80211_TX_STAT_ACK);
1228
1229 info->status.rates[0].idx = -1;
1230 mt76_tx_status_skb_done(mdev, skb, &list);
1231
1232 out:
1233 mt76_tx_status_unlock(mdev, &list);
1234
1235 return !!skb;
1236 }
1237
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org