From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38664125BA for ; Sun, 7 Jan 2024 06:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GLSliuBl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704608947; x=1736144947; h=date:from:to:cc:subject:message-id:mime-version; bh=pLNxWRLGinYwoO6b+jXWZyov/23Zqk6a3b4h1iCi38I=; b=GLSliuBldAWy7vOK4dKVuyiBFze+On2w8wnupWyd4zuZ/viKEE1MMcd7 HB+sCffkFS0oGIQpGCNYrtS1IJYv00OFdorIyknKS0IPy91IfGJG2jl40 HrhnUaetItVk36Hl1MwtpUjRZuqnKOyTxXbS5hBJ9vKINjRHFYMWj+iYr fr7Xg8wtcW5+Q63lATbuokZ6NeH9Ct1asHKaol3piZ2iCYJRssdmgKuQO 80DJax5QiHxYiyV88YyP8UljOAIHBALP0Jcn1gnMYGXxr16GDL+99Pnhf +aOlrQEhcLnkVQWAn3aXUl5zqRXJZ6bBamoSxSDB6/+9uISzcAvkOE5pp A==; X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="11189494" X-IronPort-AV: E=Sophos;i="6.04,338,1695711600"; d="scan'208";a="11189494" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 22:29:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="784560731" X-IronPort-AV: E=Sophos;i="6.04,338,1695711600"; d="scan'208";a="784560731" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga007.fm.intel.com with ESMTP; 06 Jan 2024 22:29:03 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rMMeb-0003Tw-0x; Sun, 07 Jan 2024 06:29:01 +0000 Date: Sun, 7 Jan 2024 14:28:17 +0800 From: kernel test robot To: wenxu Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Pablo Neira Ayuso Subject: net/netfilter/nf_flow_table_offload.c:88:25: sparse: sparse: incorrect type in assignment (different base types) Message-ID: <202401071423.v3PWGH9j-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 52b1853b080a082ec3749c3a9577f6c71b1d4a90 commit: 3e1b0c168f6c8648f217c78ed6a4135af8c9d830 netfilter: flowtable: add vlan match offload support date: 2 years, 9 months ago config: i386-randconfig-r132-20240106 (https://download.01.org/0day-ci/archive/20240107/202401071423.v3PWGH9j-lkp@intel.com/config) compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240107/202401071423.v3PWGH9j-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401071423.v3PWGH9j-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) net/netfilter/nf_flow_table_offload.c:46:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] keyid @@ got unsigned int @@ net/netfilter/nf_flow_table_offload.c:46:32: sparse: expected restricted __be32 [usertype] keyid net/netfilter/nf_flow_table_offload.c:46:32: sparse: got unsigned int net/netfilter/nf_flow_table_offload.c:56:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] src @@ got unsigned int @@ net/netfilter/nf_flow_table_offload.c:56:44: sparse: expected restricted __be32 [usertype] src net/netfilter/nf_flow_table_offload.c:56:44: sparse: got unsigned int net/netfilter/nf_flow_table_offload.c:58:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] dst @@ got unsigned int @@ net/netfilter/nf_flow_table_offload.c:58:44: sparse: expected restricted __be32 [usertype] dst net/netfilter/nf_flow_table_offload.c:58:44: sparse: got unsigned int >> net/netfilter/nf_flow_table_offload.c:88:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] vlan_tpid @@ got int @@ net/netfilter/nf_flow_table_offload.c:88:25: sparse: expected restricted __be16 [usertype] vlan_tpid net/netfilter/nf_flow_table_offload.c:88:25: sparse: got int net/netfilter/nf_flow_table_offload.c:147:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] src @@ got unsigned int @@ net/netfilter/nf_flow_table_offload.c:147:32: sparse: expected restricted __be32 [usertype] src net/netfilter/nf_flow_table_offload.c:147:32: sparse: got unsigned int net/netfilter/nf_flow_table_offload.c:149:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] dst @@ got unsigned int @@ net/netfilter/nf_flow_table_offload.c:149:32: sparse: expected restricted __be32 [usertype] dst net/netfilter/nf_flow_table_offload.c:149:32: sparse: got unsigned int net/netfilter/nf_flow_table_offload.c:164:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] n_proto @@ got int @@ net/netfilter/nf_flow_table_offload.c:164:29: sparse: expected restricted __be16 [usertype] n_proto net/netfilter/nf_flow_table_offload.c:164:29: sparse: got int net/netfilter/nf_flow_table_offload.c:182:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] src @@ got int @@ net/netfilter/nf_flow_table_offload.c:182:22: sparse: expected restricted __be16 [usertype] src net/netfilter/nf_flow_table_offload.c:182:22: sparse: got int net/netfilter/nf_flow_table_offload.c:184:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] dst @@ got int @@ net/netfilter/nf_flow_table_offload.c:184:22: sparse: expected restricted __be16 [usertype] dst net/netfilter/nf_flow_table_offload.c:184:22: sparse: got int net/netfilter/nf_flow_table_offload.c:247:30: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *value @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:247:30: sparse: expected restricted __be32 const [usertype] *value net/netfilter/nf_flow_table_offload.c:247:30: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:247:36: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:247:36: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:247:36: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:252:30: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *value @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:252:30: sparse: expected restricted __be32 const [usertype] *value net/netfilter/nf_flow_table_offload.c:252:30: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:252:36: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:252:36: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:252:36: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:306:30: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *value @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:306:30: sparse: expected restricted __be32 const [usertype] *value net/netfilter/nf_flow_table_offload.c:306:30: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:306:36: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:306:36: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:306:36: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:312:30: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *value @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:312:30: sparse: expected restricted __be32 const [usertype] *value net/netfilter/nf_flow_table_offload.c:312:30: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:312:36: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:312:36: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:312:36: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:323:20: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:323:20: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:323:20: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:341:37: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:341:37: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:341:37: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:350:20: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:350:20: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:350:20: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:368:37: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:368:37: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:368:37: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:390:20: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:390:20: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:390:20: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:407:60: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:407:60: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:407:60: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:415:20: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:415:20: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:415:20: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:432:60: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:432:60: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:432:60: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:467:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] port @@ got restricted __be32 [usertype] @@ net/netfilter/nf_flow_table_offload.c:467:22: sparse: expected unsigned int [assigned] [usertype] port net/netfilter/nf_flow_table_offload.c:467:22: sparse: got restricted __be32 [usertype] net/netfilter/nf_flow_table_offload.c:468:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:468:22: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:468:22: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:473:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] port @@ got restricted __be32 [usertype] @@ net/netfilter/nf_flow_table_offload.c:473:22: sparse: expected unsigned int [assigned] [usertype] port net/netfilter/nf_flow_table_offload.c:473:22: sparse: got restricted __be32 [usertype] net/netfilter/nf_flow_table_offload.c:474:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:474:22: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:474:22: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:481:30: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *value @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:481:30: sparse: expected restricted __be32 const [usertype] *value net/netfilter/nf_flow_table_offload.c:481:30: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:481:37: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:481:37: sparse: expected restricted __be32 const [usertype] *mask net/netfilter/nf_flow_table_offload.c:481:37: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:497:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] port @@ got restricted __be32 [usertype] @@ net/netfilter/nf_flow_table_offload.c:497:22: sparse: expected unsigned int [assigned] [usertype] port net/netfilter/nf_flow_table_offload.c:497:22: sparse: got restricted __be32 [usertype] net/netfilter/nf_flow_table_offload.c:498:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:498:22: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:498:22: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:503:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] port @@ got restricted __be32 [usertype] @@ net/netfilter/nf_flow_table_offload.c:503:22: sparse: expected unsigned int [assigned] [usertype] port net/netfilter/nf_flow_table_offload.c:503:22: sparse: got restricted __be32 [usertype] net/netfilter/nf_flow_table_offload.c:504:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] mask @@ got restricted __be32 @@ net/netfilter/nf_flow_table_offload.c:504:22: sparse: expected unsigned int [usertype] mask net/netfilter/nf_flow_table_offload.c:504:22: sparse: got restricted __be32 net/netfilter/nf_flow_table_offload.c:511:30: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 const [usertype] *value @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:511:30: sparse: expected restricted __be32 const [usertype] *value net/netfilter/nf_flow_table_offload.c:511:30: sparse: got unsigned int * net/netfilter/nf_flow_table_offload.c:511:37: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __be32 const [usertype] *mask @@ got unsigned int * @@ net/netfilter/nf_flow_table_offload.c:511:37: sparse: expected restricted __be32 const [usertype] *mask vim +88 net/netfilter/nf_flow_table_offload.c 80 81 static void nf_flow_rule_vlan_match(struct flow_dissector_key_vlan *key, 82 struct flow_dissector_key_vlan *mask, 83 u16 vlan_id, __be16 proto) 84 { 85 key->vlan_id = vlan_id; 86 mask->vlan_id = VLAN_VID_MASK; 87 key->vlan_tpid = proto; > 88 mask->vlan_tpid = 0xffff; 89 } 90 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki