public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jie Wang <wangjie125@huawei.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:742:61: sparse: sparse: incorrect type in argument 3 (different base types)
Date: Sat, 12 Mar 2022 04:33:58 +0800	[thread overview]
Message-ID: <202203120417.yiJhIAiF-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   79b00034e9dcd2b065c1665c8b42f62b6b80a9be
commit: 7428d6c9366560143b9dbb6dbf2141fa811d4bc8 net: hns3: refactor VF rss set APIs with new common rss set APIs
date:   9 weeks ago
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220312/202203120417.yiJhIAiF-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7428d6c9366560143b9dbb6dbf2141fa811d4bc8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7428d6c9366560143b9dbb6dbf2141fa811d4bc8
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/net/ethernet/hisilicon/hns3/ drivers/vdpa/mlx5/

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/hisilicon/hns3/hns3vf/hclgevf_main.c:742:61: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __le16 [usertype] rss_ind_tbl_size @@     got unsigned short [usertype] rss_ind_tbl_size @@
   drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:742:61: sparse:     expected restricted __le16 [usertype] rss_ind_tbl_size
   drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:742:61: sparse:     got unsigned short [usertype] rss_ind_tbl_size

vim +742 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

   719	
   720	static int hclgevf_get_rss(struct hnae3_handle *handle, u32 *indir, u8 *key,
   721				   u8 *hfunc)
   722	{
   723		struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle);
   724		struct hclge_comm_rss_cfg *rss_cfg = &hdev->rss_cfg;
   725		int ret;
   726	
   727		if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) {
   728			hclge_comm_get_rss_hash_info(rss_cfg, key, hfunc);
   729		} else {
   730			if (hfunc)
   731				*hfunc = ETH_RSS_HASH_TOP;
   732			if (key) {
   733				ret = hclgevf_get_rss_hash_key(hdev);
   734				if (ret)
   735					return ret;
   736				memcpy(key, rss_cfg->rss_hash_key,
   737				       HCLGE_COMM_RSS_KEY_SIZE);
   738			}
   739		}
   740	
   741		hclge_comm_get_rss_indir_tbl(rss_cfg, indir,
 > 742					     hdev->ae_dev->dev_specs.rss_ind_tbl_size);
   743	
   744		return 0;
   745	}
   746	

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

             reply	other threads:[~2022-03-11 20:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-11 20:33 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-03 14:05 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:742:61: sparse: sparse: incorrect type in argument 3 (different base types) kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202203120417.yiJhIAiF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wangjie125@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox