linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
@ 2020-10-03  4:15 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-10-03  4:15 UTC (permalink / raw)
  To: Luo bin; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2654 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d3d45f8220d60a0b2aaaacf8fb2be4e6ffd9008e
commit: 1f62cfa19a619f82c098468660b7950477101d45 hinic: add net_device_ops associated with vf
date:   5 months ago
config: x86_64-randconfig-s022-20201003 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-201-g24bdaac6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f62cfa19a619f82c098468660b7950477101d45
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 1f62cfa19a619f82c098468660b7950477101d45
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

	echo
	echo "sparse warnings: (new ones prefixed by >>)"
	echo
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16

vim +796 drivers/net/ethernet/huawei/hinic/hinic_main.c

   778	
   779	static void hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue)
   780	{
   781		struct hinic_dev *nic_dev = netdev_priv(netdev);
   782		u16 sw_pi, hw_ci, sw_ci;
   783		struct hinic_sq *sq;
   784		u16 num_sqs, q_id;
   785	
   786		num_sqs = hinic_hwdev_num_qps(nic_dev->hwdev);
   787	
   788		netif_err(nic_dev, drv, netdev, "Tx timeout\n");
   789	
   790		for (q_id = 0; q_id < num_sqs; q_id++) {
   791			if (!netif_xmit_stopped(netdev_get_tx_queue(netdev, q_id)))
   792				continue;
   793	
   794			sq = hinic_hwdev_get_sq(nic_dev->hwdev, q_id);
   795			sw_pi = atomic_read(&sq->wq->prod_idx) & sq->wq->mask;
 > 796			hw_ci = be16_to_cpu(*(u16 *)(sq->hw_ci_addr)) & sq->wq->mask;
   797			sw_ci = atomic_read(&sq->wq->cons_idx) & sq->wq->mask;
   798			netif_err(nic_dev, drv, netdev, "Txq%d: sw_pi: %d, hw_ci: %d, sw_ci: %d, napi->state: 0x%lx\n",
   799				  q_id, sw_pi, hw_ci, sw_ci,
   800				  nic_dev->txqs[q_id].napi.state);
   801		}
   802	}
   803	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36890 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
@ 2021-12-01 11:12 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-12-01 11:12 UTC (permalink / raw)
  To: Luo bin; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   58e1100fdc5990b0cc0d4beaf2562a92e621ac7d
commit: 1f62cfa19a619f82c098468660b7950477101d45 hinic: add net_device_ops associated with vf
date:   1 year, 7 months ago
config: x86_64-randconfig-s022-20211124 (https://download.01.org/0day-ci/archive/20211201/202112011907.Q6F2ZYJU-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f62cfa19a619f82c098468660b7950477101d45
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 1f62cfa19a619f82c098468660b7950477101d45
        # save the config file to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash

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/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16

vim +796 drivers/net/ethernet/huawei/hinic/hinic_main.c

   778	
   779	static void hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue)
   780	{
   781		struct hinic_dev *nic_dev = netdev_priv(netdev);
   782		u16 sw_pi, hw_ci, sw_ci;
   783		struct hinic_sq *sq;
   784		u16 num_sqs, q_id;
   785	
   786		num_sqs = hinic_hwdev_num_qps(nic_dev->hwdev);
   787	
   788		netif_err(nic_dev, drv, netdev, "Tx timeout\n");
   789	
   790		for (q_id = 0; q_id < num_sqs; q_id++) {
   791			if (!netif_xmit_stopped(netdev_get_tx_queue(netdev, q_id)))
   792				continue;
   793	
   794			sq = hinic_hwdev_get_sq(nic_dev->hwdev, q_id);
   795			sw_pi = atomic_read(&sq->wq->prod_idx) & sq->wq->mask;
 > 796			hw_ci = be16_to_cpu(*(u16 *)(sq->hw_ci_addr)) & sq->wq->mask;
   797			sw_ci = atomic_read(&sq->wq->cons_idx) & sq->wq->mask;
   798			netif_err(nic_dev, drv, netdev, "Txq%d: sw_pi: %d, hw_ci: %d, sw_ci: %d, napi->state: 0x%lx\n",
   799				  q_id, sw_pi, hw_ci, sw_ci,
   800				  nic_dev->txqs[q_id].napi.state);
   801		}
   802	}
   803	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
@ 2020-09-02  0:40 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-09-02  0:40 UTC (permalink / raw)
  To: Luo bin; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2662 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b765a32a2e9170702467747e290614be072c4f76
commit: 1f62cfa19a619f82c098468660b7950477101d45 hinic: add net_device_ops associated with vf
date:   4 months ago
config: i386-randconfig-s001-20200902 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-191-g10164920-dirty
        git checkout 1f62cfa19a619f82c098468660b7950477101d45
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f62cfa19a619f82c098468660b7950477101d45
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1f62cfa19a619f82c098468660b7950477101d45
vim +796 drivers/net/ethernet/huawei/hinic/hinic_main.c

   778	
   779	static void hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue)
   780	{
   781		struct hinic_dev *nic_dev = netdev_priv(netdev);
   782		u16 sw_pi, hw_ci, sw_ci;
   783		struct hinic_sq *sq;
   784		u16 num_sqs, q_id;
   785	
   786		num_sqs = hinic_hwdev_num_qps(nic_dev->hwdev);
   787	
   788		netif_err(nic_dev, drv, netdev, "Tx timeout\n");
   789	
   790		for (q_id = 0; q_id < num_sqs; q_id++) {
   791			if (!netif_xmit_stopped(netdev_get_tx_queue(netdev, q_id)))
   792				continue;
   793	
   794			sq = hinic_hwdev_get_sq(nic_dev->hwdev, q_id);
   795			sw_pi = atomic_read(&sq->wq->prod_idx) & sq->wq->mask;
 > 796			hw_ci = be16_to_cpu(*(u16 *)(sq->hw_ci_addr)) & sq->wq->mask;
   797			sw_ci = atomic_read(&sq->wq->cons_idx) & sq->wq->mask;
   798			netif_err(nic_dev, drv, netdev, "Txq%d: sw_pi: %d, hw_ci: %d, sw_ci: %d, napi->state: 0x%lx\n",
   799				  q_id, sw_pi, hw_ci, sw_ci,
   800				  nic_dev->txqs[q_id].napi.state);
   801		}
   802	}
   803	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44513 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16
@ 2020-06-06 20:13 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-06-06 20:13 UTC (permalink / raw)
  To: Luo bin; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2066 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b170290c2836c40ab565736ba37681eb3dfd79b8
commit: 1f62cfa19a619f82c098468660b7950477101d45 hinic: add net_device_ops associated with vf
date:   6 weeks ago
config: arm64-randconfig-s032-20200607 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-247-gcadbd124-dirty
        git checkout 1f62cfa19a619f82c098468660b7950477101d45
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16

vim +796 drivers/net/ethernet/huawei/hinic/hinic_main.c

   778	
   779	static void hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue)
   780	{
   781		struct hinic_dev *nic_dev = netdev_priv(netdev);
   782		u16 sw_pi, hw_ci, sw_ci;
   783		struct hinic_sq *sq;
   784		u16 num_sqs, q_id;
   785	
   786		num_sqs = hinic_hwdev_num_qps(nic_dev->hwdev);
   787	
   788		netif_err(nic_dev, drv, netdev, "Tx timeout\n");
   789	
   790		for (q_id = 0; q_id < num_sqs; q_id++) {
   791			if (!netif_xmit_stopped(netdev_get_tx_queue(netdev, q_id)))
   792				continue;
   793	
   794			sq = hinic_hwdev_get_sq(nic_dev->hwdev, q_id);
   795			sw_pi = atomic_read(&sq->wq->prod_idx) & sq->wq->mask;
 > 796			hw_ci = be16_to_cpu(*(u16 *)(sq->hw_ci_addr)) & sq->wq->mask;
   797			sw_ci = atomic_read(&sq->wq->cons_idx) & sq->wq->mask;
   798			netif_err(nic_dev, drv, netdev, "Txq%d: sw_pi: %d, hw_ci: %d, sw_ci: %d, napi->state: 0x%lx\n",
   799				  q_id, sw_pi, hw_ci, sw_ci,
   800				  nic_dev->txqs[q_id].napi.state);
   801		}
   802	}
   803	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35817 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-01 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03  4:15 drivers/net/ethernet/huawei/hinic/hinic_main.c:796:25: sparse: sparse: cast to restricted __be16 kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-12-01 11:12 kernel test robot
2020-09-02  0:40 kernel test robot
2020-06-06 20:13 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).