From: kernel test robot <lkp@intel.com> To: Jie Wang <wangjie125@huawei.com> Cc: kbuild-all@lists.01.org, Linux Memory Management List <linux-mm@kvack.org> Subject: [linux-next:master 10693/11475] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:4765:55: sparse: sparse: incorrect type in argument 3 (different base types) Date: Sat, 8 Jan 2022 19:44:39 +0800 [thread overview] Message-ID: <202201081911.ZekgSHwC-lkp@intel.com> (raw) tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b8170452cd5121b11a5726e3ea8dbdfc2d74e771 commit: 1813ee52433103d389da7c9c7ee5f81d113d9566 [10693/11475] net: hns3: refactor PF rss set APIs with new common rss set APIs config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220108/202201081911.ZekgSHwC-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/next/linux-next.git/commit/?id=1813ee52433103d389da7c9c7ee5f81d113d9566 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 1813ee52433103d389da7c9c7ee5f81d113d9566 # 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/hns3pf/hclge_main.c:4765:55: 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/hns3pf/hclge_main.c:4765:55: sparse: expected restricted __le16 [usertype] rss_ind_tbl_size drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:4765:55: sparse: got unsigned short [usertype] rss_ind_tbl_size drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:5347:31: sparse: sparse: context imbalance in 'hclge_sync_fd_user_def_cfg' - unexpected unlock vim +4765 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 4754 4755 static int hclge_get_rss(struct hnae3_handle *handle, u32 *indir, 4756 u8 *key, u8 *hfunc) 4757 { 4758 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); 4759 struct hclge_vport *vport = hclge_get_vport(handle); 4760 struct hclge_comm_rss_cfg *rss_cfg = &vport->back->rss_cfg; 4761 4762 hclge_comm_get_rss_hash_info(rss_cfg, key, hfunc); 4763 4764 hclge_comm_get_rss_indir_tbl(rss_cfg, indir, > 4765 ae_dev->dev_specs.rss_ind_tbl_size); 4766 4767 return 0; 4768 } 4769 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: [linux-next:master 10693/11475] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:4765:55: sparse: sparse: incorrect type in argument 3 (different base types) Date: Sat, 08 Jan 2022 19:44:39 +0800 [thread overview] Message-ID: <202201081911.ZekgSHwC-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 2882 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b8170452cd5121b11a5726e3ea8dbdfc2d74e771 commit: 1813ee52433103d389da7c9c7ee5f81d113d9566 [10693/11475] net: hns3: refactor PF rss set APIs with new common rss set APIs config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220108/202201081911.ZekgSHwC-lkp(a)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/next/linux-next.git/commit/?id=1813ee52433103d389da7c9c7ee5f81d113d9566 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 1813ee52433103d389da7c9c7ee5f81d113d9566 # 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/hns3pf/hclge_main.c:4765:55: 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/hns3pf/hclge_main.c:4765:55: sparse: expected restricted __le16 [usertype] rss_ind_tbl_size drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:4765:55: sparse: got unsigned short [usertype] rss_ind_tbl_size drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:5347:31: sparse: sparse: context imbalance in 'hclge_sync_fd_user_def_cfg' - unexpected unlock vim +4765 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 4754 4755 static int hclge_get_rss(struct hnae3_handle *handle, u32 *indir, 4756 u8 *key, u8 *hfunc) 4757 { 4758 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); 4759 struct hclge_vport *vport = hclge_get_vport(handle); 4760 struct hclge_comm_rss_cfg *rss_cfg = &vport->back->rss_cfg; 4761 4762 hclge_comm_get_rss_hash_info(rss_cfg, key, hfunc); 4763 4764 hclge_comm_get_rss_indir_tbl(rss_cfg, indir, > 4765 ae_dev->dev_specs.rss_ind_tbl_size); 4766 4767 return 0; 4768 } 4769 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-01-08 11:44 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-08 11:44 kernel test robot [this message] 2022-01-08 11:44 ` [linux-next:master 10693/11475] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:4765:55: 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=202201081911.ZekgSHwC-lkp@intel.com \ --to=lkp@intel.com \ --cc=kbuild-all@lists.01.org \ --cc=linux-mm@kvack.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.