lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202409040845.XQQRrH9v-lkp@intel.com>
Date: Wed, 4 Sep 2024 09:22:48 +0800
From: kernel test robot <lkp@...el.com>
To: Saeed Mahameed <saeed@...nel.org>,
	"David S. Miller" <davem@...emloft.net>,
	Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
	Eric Dumazet <edumazet@...gle.com>
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org,
	Saeed Mahameed <saeedm@...dia.com>,
	Tariq Toukan <tariqt@...dia.com>, Gal Pressman <gal@...dia.com>,
	Leon Romanovsky <leonro@...dia.com>,
	Yevgeny Kliteynik <kliteyn@...dia.com>,
	Erez Shitrit <erezsh@...dia.com>
Subject: Re: [net-next 15/15] net/mlx5: HWS, added API and enabled HWS support

Hi Saeed,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Saeed-Mahameed/net-mlx5-Added-missing-definitions-in-preparation-for-HW-Steering/20240903-121951
base:   net-next/main
patch link:    https://lore.kernel.org/r/20240903031948.78006-16-saeed%40kernel.org
patch subject: [net-next 15/15] net/mlx5: HWS, added API and enabled HWS support
config: i386-randconfig-063-20240903 (https://download.01.org/0day-ci/archive/20240904/202409040845.XQQRrH9v-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240904/202409040845.XQQRrH9v-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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409040845.XQQRrH9v-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c:119:30: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c:119:30: sparse: sparse: cast from restricted __be64
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c:120:30: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c:120:30: sparse: sparse: cast from restricted __be64
--
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:516:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:516:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:516:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:517:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:517:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:517:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:518:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:518:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:518:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:672:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:672:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:672:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:673:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:673:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:673:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:674:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:674:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:674:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:834:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:834:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:834:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:835:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:835:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:835:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:836:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:836:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:836:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:837:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:837:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:837:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:838:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:838:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:838:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:839:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:839:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:839:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:840:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:840:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:840:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:846:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:846:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:846:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1031:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1031:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1031:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1032:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1032:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1032:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1033:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1033:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1033:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1105:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1105:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1105:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1106:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1106:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1106:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1107:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1107:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1107:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1108:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1108:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1108:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1336:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1336:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1336:13: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1386:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] res @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1386:13: sparse:     expected unsigned int [usertype] res
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1386:13: sparse:     got restricted __be32 [usertype]
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1783:58: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:1795:52: sparse: sparse: cast to restricted __be32
--
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_send.c:1117:14: sparse: sparse: cast from restricted __be32
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_send.c:1117:14: sparse: sparse: restricted __be32 degrades to integer
--
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:41:12: sparse: sparse: symbol 'mlx5hws_action_type_str' was not declared. Should it be static?
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1562:54: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1562:54: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1562:54: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1765:54: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1765:54: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1765:54: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1766:54: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1766:54: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:1766:54: sparse:     got restricted __be32 [usertype]
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2165:52: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] vlan_hdr @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2165:52: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2165:52: sparse:     got restricted __be32 [usertype] vlan_hdr
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2183:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] stc_idx @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2183:17: sparse:     expected unsigned int [usertype] stc_idx
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2183:17: sparse:     got restricted __be32 [usertype]
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2184:61: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be32 @@     got unsigned int [usertype] stc_idx @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2184:61: sparse:     expected restricted __be32
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2184:61: sparse:     got unsigned int [usertype] stc_idx
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2203:60: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2203:60: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2203:60: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2210:60: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2210:60: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2210:60: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2239:52: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2239:52: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2239:52: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2241:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] stc_idx @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2241:17: sparse:     expected unsigned int [usertype] stc_idx
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2241:17: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2242:61: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be32 @@     got unsigned int [usertype] stc_idx @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2242:61: sparse:     expected restricted __be32
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2242:61: sparse:     got unsigned int [usertype] stc_idx
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2270:52: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2270:52: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2270:52: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2272:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] stc_idx @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2272:17: sparse:     expected unsigned int [usertype] stc_idx
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2272:17: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2273:61: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be32 @@     got unsigned int [usertype] stc_idx @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2273:61: sparse:     expected restricted __be32
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2273:61: sparse:     got unsigned int [usertype] stc_idx
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2312:52: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2312:52: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2312:52: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2313:52: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2313:52: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2313:52: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2326:52: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2326:52: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2326:52: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2337:52: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2337:52: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2337:52: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2380:56: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2380:56: sparse:     expected unsigned int [usertype]
   drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c:2380:56: sparse:     got restricted __be32 [usertype]
--
>> drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_cmd.c:9:16: sparse: sparse: cast to restricted __be32

vim +119 drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c

fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02   98  
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02   99  static bool mlx5hws_pat_compare_pattern(int cur_num_of_actions,
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  100  					__be64 cur_actions[],
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  101  					int num_of_actions,
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  102  					__be64 actions[])
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  103  {
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  104  	int i;
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  105  
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  106  	if (cur_num_of_actions != num_of_actions)
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  107  		return false;
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  108  
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  109  	for (i = 0; i < num_of_actions; i++) {
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  110  		u8 action_id =
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  111  			MLX5_GET(set_action_in, &actions[i], action_type);
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  112  
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  113  		if (action_id == MLX5_MODIFICATION_TYPE_COPY ||
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  114  		    action_id == MLX5_MODIFICATION_TYPE_ADD_FIELD) {
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  115  			if (actions[i] != cur_actions[i])
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  116  				return false;
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  117  		} else {
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  118  			/* Compare just the control, not the values */
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02 @119  			if ((__be32)actions[i] !=
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  120  			    (__be32)cur_actions[i])
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  121  				return false;
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  122  		}
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  123  	}
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  124  
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  125  	return true;
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  126  }
fb3c1a8b875d02 Yevgeny Kliteynik 2024-09-02  127  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ