CC: [email protected] CC: [email protected] TO: Parav Pandit <[email protected]> CC: Saeed Mahameed <[email protected]> CC: Vu Pham <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8baef6386baaefb776bdd09b5c7630cf057c51c6 commit: 90d010b8634b89a97ca3b7aa6a88fd566fc77717 net/mlx5: SF, Add auxiliary device support date: 6 months ago :::::: branch date: 2 hours ago :::::: commit date: 6 months ago config: ia64-randconfig-m031-20210723 (attached as .config) compiler: ia64-linux-gcc (GCC) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c:212 mlx5_sf_dev_table_create() warn: should '1 << (((((__builtin_constant_p(((*((dev->caps.hca_cur[0])[(($expr_0x7fd45f441a60(30)) / 32)]))))) ?((((((*((dev->caps.hca_cur[0])[(($expr_0x7fd45f442320(30)) / 32)]))) & 255) << 24) | ((((*((dev->caps.hca_cur[0])[(($expr_0x7fd45f442c80(30)) / 32)]))) & 65280) << 8) | ((((*((dev->caps.hca_cur[0])[(($expr_0x7fd45f4435e0(30)) / 32)]))) & 16711680) >> 8) | ((((*((dev->caps.hca_cur[0])[(($expr_0x7fd45f443f40(30)) / 32)]))) & 4278190080) >> 24))):__fswab32((*((dev->caps.hca_cur[0]) + (($expr_0x7fd45f4347e0(30)) ' be a 64 bit type? vim +212 drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c 90d010b8634b89 Parav Pandit 2020-12-11 190 90d010b8634b89 Parav Pandit 2020-12-11 191 void mlx5_sf_dev_table_create(struct mlx5_core_dev *dev) 90d010b8634b89 Parav Pandit 2020-12-11 192 { 90d010b8634b89 Parav Pandit 2020-12-11 193 struct mlx5_sf_dev_table *table; 90d010b8634b89 Parav Pandit 2020-12-11 194 unsigned int max_sfs; 90d010b8634b89 Parav Pandit 2020-12-11 195 int err; 90d010b8634b89 Parav Pandit 2020-12-11 196 90d010b8634b89 Parav Pandit 2020-12-11 197 if (!mlx5_sf_dev_supported(dev) || !mlx5_vhca_event_supported(dev)) 90d010b8634b89 Parav Pandit 2020-12-11 198 return; 90d010b8634b89 Parav Pandit 2020-12-11 199 90d010b8634b89 Parav Pandit 2020-12-11 200 table = kzalloc(sizeof(*table), GFP_KERNEL); 90d010b8634b89 Parav Pandit 2020-12-11 201 if (!table) { 90d010b8634b89 Parav Pandit 2020-12-11 202 err = -ENOMEM; 90d010b8634b89 Parav Pandit 2020-12-11 203 goto table_err; 90d010b8634b89 Parav Pandit 2020-12-11 204 } 90d010b8634b89 Parav Pandit 2020-12-11 205 90d010b8634b89 Parav Pandit 2020-12-11 206 table->nb.notifier_call = mlx5_sf_dev_state_change_handler; 90d010b8634b89 Parav Pandit 2020-12-11 207 table->dev = dev; 90d010b8634b89 Parav Pandit 2020-12-11 208 if (MLX5_CAP_GEN(dev, max_num_sf)) 90d010b8634b89 Parav Pandit 2020-12-11 209 max_sfs = MLX5_CAP_GEN(dev, max_num_sf); 90d010b8634b89 Parav Pandit 2020-12-11 210 else 90d010b8634b89 Parav Pandit 2020-12-11 211 max_sfs = 1 << MLX5_CAP_GEN(dev, log_max_sf); 90d010b8634b89 Parav Pandit 2020-12-11 @212 table->sf_bar_length = 1 << (MLX5_CAP_GEN(dev, log_min_sf_size) + 12); 90d010b8634b89 Parav Pandit 2020-12-11 213 table->base_address = pci_resource_start(dev->pdev, 2); 90d010b8634b89 Parav Pandit 2020-12-11 214 table->max_sfs = max_sfs; 90d010b8634b89 Parav Pandit 2020-12-11 215 xa_init(&table->devices); 90d010b8634b89 Parav Pandit 2020-12-11 216 dev->priv.sf_dev_table = table; 90d010b8634b89 Parav Pandit 2020-12-11 217 90d010b8634b89 Parav Pandit 2020-12-11 218 err = mlx5_vhca_event_notifier_register(dev, &table->nb); 90d010b8634b89 Parav Pandit 2020-12-11 219 if (err) 90d010b8634b89 Parav Pandit 2020-12-11 220 goto vhca_err; 90d010b8634b89 Parav Pandit 2020-12-11 221 err = mlx5_sf_dev_vhca_arm_all(table); 90d010b8634b89 Parav Pandit 2020-12-11 222 if (err) 90d010b8634b89 Parav Pandit 2020-12-11 223 goto arm_err; 90d010b8634b89 Parav Pandit 2020-12-11 224 mlx5_core_dbg(dev, "SF DEV: max sf devices=%d\n", max_sfs); 90d010b8634b89 Parav Pandit 2020-12-11 225 return; 90d010b8634b89 Parav Pandit 2020-12-11 226 90d010b8634b89 Parav Pandit 2020-12-11 227 arm_err: 90d010b8634b89 Parav Pandit 2020-12-11 228 mlx5_vhca_event_notifier_unregister(dev, &table->nb); 90d010b8634b89 Parav Pandit 2020-12-11 229 vhca_err: 90d010b8634b89 Parav Pandit 2020-12-11 230 table->max_sfs = 0; 90d010b8634b89 Parav Pandit 2020-12-11 231 kfree(table); 90d010b8634b89 Parav Pandit 2020-12-11 232 dev->priv.sf_dev_table = NULL; 90d010b8634b89 Parav Pandit 2020-12-11 233 table_err: 90d010b8634b89 Parav Pandit 2020-12-11 234 mlx5_core_err(dev, "SF DEV table create err = %d\n", err); 90d010b8634b89 Parav Pandit 2020-12-11 235 } 90d010b8634b89 Parav Pandit 2020-12-11 236 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
