From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EB6FC433EF for ; Thu, 3 Mar 2022 14:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233241AbiCCOGo (ORCPT ); Thu, 3 Mar 2022 09:06:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbiCCOGm (ORCPT ); Thu, 3 Mar 2022 09:06:42 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ACA2179278 for ; Thu, 3 Mar 2022 06:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646316357; x=1677852357; h=date:from:to:cc:subject:message-id:mime-version; bh=49UcjjjO8f4A3tDzD4Hr7bdS2exTPgFEwn5lMUb5kq4=; b=Sd7aouR3pNayg/1pkcmDBvs9cEaCfWKxFmOwvI+YkZ6jLP+5U+shkJ/M pnamHrzptPYpwy9jk5nR2xZ2x7NTKbblbG+JQkpbm5mumZQapFzaVTTyH 8TAOn7Fqf0SNYRghfQLWdVPKt8Ra7qjg9D3nAngpAYxr4JLF1YscmD8aZ Vxh3icZap0//t2eL7tIjFuM/IfSHXn50T4bxIIUmX5zF7BtVaspaEld/c gf6hUwsayB6iNMXCoeQzjyW8nQxCbJdZgLaPtwteRpbkqad67ICHtCZww vwny22WyMd7P7wDobX8Bur2RpwGUJ3B4Ylgk1nE7xAWmE6w6mZp5KeseR w==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="241100951" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="241100951" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 06:05:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="535838757" Received: from lkp-server01.sh.intel.com (HELO ccb16ba0ecc3) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 03 Mar 2022 06:05:55 -0800 Received: from kbuild by ccb16ba0ecc3 with local (Exim 4.92) (envelope-from ) id 1nPm5a-0000bJ-TQ; Thu, 03 Mar 2022 14:05:54 +0000 Date: Thu, 3 Mar 2022 22:05:28 +0800 From: kernel test robot To: Jie Wang 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) Message-ID: <202203032256.qPT9K5ZX-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5859a2b1991101d6b978f3feb5325dad39421f29 commit: 7428d6c9366560143b9dbb6dbf2141fa811d4bc8 net: hns3: refactor VF rss set APIs with new common rss set APIs date: 8 weeks ago config: ia64-randconfig-s031-20220303 (https://download.01.org/0day-ci/archive/20220303/202203032256.qPT9K5ZX-lkp@intel.com/config) compiler: ia64-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=ia64 SHELL=/bin/bash drivers/net/ethernet/hisilicon/hns3/ drivers/net/wwan/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org