[linux-next:master 10405/12612] drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1222:29: sparse: sparse: cast to restricted __le32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d61c8b66c84080ecf8f9f4d9272ab4ec78029a59
commit: 3de4cb1756565a22321039eb9ae0193519bed967 [10405/12612] 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3de4cb1756565a22321039eb9ae0193519bed967
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 3de4cb1756565a22321039eb9ae0193519bed967
        # 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@xxxxxxxxx>


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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux