* [intel-linux-intel-lts:5.4/yocto 15747/18252] drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast to restricted __be16
@ 2021-08-22 15:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-22 15:26 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2772 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: cfef018a5efc728040e938c270bbc68fc8124d33
commit: 838384fea3c5ff86d19b3fe3ef01d2be8d83d7d2 [15747/18252] igc: Enable VLAN Insertion and VLAN Stripping
config: x86_64-randconfig-s022-20210815 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/intel/linux-intel-lts/commit/838384fea3c5ff86d19b3fe3ef01d2be8d83d7d2
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 838384fea3c5ff86d19b3fe3ef01d2be8d83d7d2
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ethernet/intel/igc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast from restricted __le16
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast from restricted __le16
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast from restricted __le16
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast from restricted __le16
vim +1531 drivers/net/ethernet/intel/igc/igc_main.c
1519
1520 static void igc_rx_vlan(struct igc_ring *rx_ring,
1521 union igc_adv_rx_desc *rx_desc,
1522 struct sk_buff *skb)
1523 {
1524 struct net_device *dev = rx_ring->netdev;
1525 u16 vid;
1526
1527 if ((dev->features & NETIF_F_HW_VLAN_CTAG_RX) &&
1528 igc_test_staterr(rx_desc, IGC_RXD_STAT_VP)) {
1529 if (igc_test_staterr(rx_desc, IGC_RXDEXT_STATERR_LB) &&
1530 test_bit(IGC_RING_FLAG_RX_LB_VLAN_BSWAP, &rx_ring->flags))
> 1531 vid = be16_to_cpu(rx_desc->wb.upper.vlan);
1532 else
1533 vid = le16_to_cpu(rx_desc->wb.upper.vlan);
1534
1535 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid);
1536 }
1537 }
1538
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35362 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-22 15:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-22 15:26 [intel-linux-intel-lts:5.4/yocto 15747/18252] drivers/net/ethernet/intel/igc/igc_main.c:1531:31: sparse: sparse: cast to restricted __be16 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.