[ath6kl:pending 49/54] drivers/net/wireless/ath/ath10k/htt_tx.c:733:22: note: in expansion of macro '__cpu_to_le32'

kbuild test robot fengguang.wu at intel.com
Mon Jan 23 05:45:11 PST 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head:   430d36c841c58d7550c3f11684a80237efd4a02d
commit: 844eabd958a79e7ad0c539fdaa40875bac46d191 [49/54] ath10k: htt: RX ring config HL support
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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
        git checkout 844eabd958a79e7ad0c539fdaa40875bac46d191
        # save the attached .config to linux build tree
        make.cross ARCH=parisc 

All warnings (new ones prefixed by >>):

   In file included from include/linux/byteorder/big_endian.h:4:0,
                    from arch/parisc/include/uapi/asm/byteorder.h:4,
                    from arch/parisc/include/asm/bitops.h:10,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/skbuff.h:17,
                    from include/linux/if_ether.h:23,
                    from include/linux/etherdevice.h:25,
                    from drivers/net/wireless/ath/ath10k/htt_tx.c:18:
   drivers/net/wireless/ath/ath10k/htt_tx.c: In function 'ath10k_htt_send_rx_ring_cfg_hl':
   include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                             ^
>> drivers/net/wireless/ath/ath10k/htt_tx.c:733:22: note: in expansion of macro '__cpu_to_le32'
     ring->rx_ring_len = __cpu_to_le32(HTT_RX_RING_SIZE_MIN);
                         ^~~~~~~~~~~~~
   include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                             ^
   drivers/net/wireless/ath/ath10k/htt_tx.c:734:26: note: in expansion of macro '__cpu_to_le32'
     ring->rx_ring_bufsize = __cpu_to_le32(HTT_RX_BUF_SIZE);
                             ^~~~~~~~~~~~~

vim +/__cpu_to_le32 +733 drivers/net/wireless/ath/ath10k/htt_tx.c

   717			return -ENOMEM;
   718	
   719		skb_put(skb, len);
   720	
   721		cmd = (struct htt_cmd *)skb->data;
   722		ring = &cmd->rx_setup.rings[0];
   723	
   724		cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_RX_RING_CFG;
   725		cmd->rx_setup.hdr.num_rings = 1;
   726	
   727		flags = 0;
   728		flags |= HTT_RX_RING_FLAGS_MSDU_PAYLOAD;
   729		flags |= HTT_RX_RING_FLAGS_UNICAST_RX;
   730		flags |= HTT_RX_RING_FLAGS_MULTICAST_RX;
   731	
   732		memset(ring, 0, sizeof(*ring));
 > 733		ring->rx_ring_len = __cpu_to_le32(HTT_RX_RING_SIZE_MIN);
   734		ring->rx_ring_bufsize = __cpu_to_le32(HTT_RX_BUF_SIZE);
   735		ring->flags = __cpu_to_le16(flags);
   736	
   737		ret = ath10k_htc_send(&htt->ar->htc, htt->eid, skb);
   738		if (ret) {
   739			dev_kfree_skb_any(skb);
   740			return ret;
   741		}

---
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/gzip
Size: 48435 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20170123/2fd2bfb7/attachment-0001.gz>


More information about the ath10k mailing list