All of lore.kernel.org
 help / color / mirror / Atom feed
* [leon-rdma:rdma-next 52/102] drivers/net/ethernet/mellanox/mlx5/core/lib/st.c:35:20: error: no member named 'parent_mdev' in 'struct mlx5_priv'
@ 2025-07-10  0:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-10  0:12 UTC (permalink / raw)
  To: Yishai Hadas; +Cc: llvm, oe-kbuild-all, Leon Romanovsky

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head:   168eb64efd0f6c7938890d4c9029142dcd13fd7c
commit: 6a5617ea8e62a77cca3cab8df55a2eba59594fb0 [52/102] net/mlx5: Add support for device steering tag
config: i386-buildonly-randconfig-006-20250710 (https://download.01.org/0day-ci/archive/20250710/202507101012.LbzCjdBi-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250710/202507101012.LbzCjdBi-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507101012.LbzCjdBi-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/mellanox/mlx5/core/lib/st.c:35:20: error: no member named 'parent_mdev' in 'struct mlx5_priv'
      35 |                 return dev->priv.parent_mdev->st;
         |                        ~~~~~~~~~ ^
   1 error generated.


vim +35 drivers/net/ethernet/mellanox/mlx5/core/lib/st.c

    23	
    24	struct mlx5_st *mlx5_st_create(struct mlx5_core_dev *dev)
    25	{
    26		struct pci_dev *pdev = dev->pdev;
    27		struct mlx5_st *st;
    28		u16 num_entries;
    29		int ret;
    30	
    31		if (!MLX5_CAP_GEN(dev, mkey_pcie_tph))
    32			return NULL;
    33	
    34		if (IS_ENABLED(CONFIG_MLX5_SF) && mlx5_core_is_sf(dev))
  > 35			return dev->priv.parent_mdev->st;
    36	
    37		/* Checking whether the device is capable */
    38		if (!pdev->tph_cap)
    39			return NULL;
    40	
    41		num_entries = pcie_tph_get_st_table_size(pdev);
    42		/* We need a reserved entry for non TPH cases */
    43		if (num_entries < 2)
    44			return NULL;
    45	
    46		/* The OS doesn't support ST */
    47		ret = pcie_enable_tph(pdev, PCI_TPH_ST_DS_MODE);
    48		if (ret)
    49			return NULL;
    50	
    51		st = kzalloc(sizeof(*st), GFP_KERNEL);
    52		if (!st)
    53			goto end;
    54	
    55		mutex_init(&st->lock);
    56		xa_init_flags(&st->idx_xa, XA_FLAGS_ALLOC);
    57		/* entry 0 is reserved for non TPH cases */
    58		st->index_limit.min = MLX5_MKC_PCIE_TPH_NO_STEERING_TAG_INDEX + 1;
    59		st->index_limit.max = num_entries - 1;
    60	
    61		return st;
    62	
    63	end:
    64		pcie_disable_tph(dev->pdev);
    65		return NULL;
    66	}
    67	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-10  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10  0:12 [leon-rdma:rdma-next 52/102] drivers/net/ethernet/mellanox/mlx5/core/lib/st.c:35:20: error: no member named 'parent_mdev' in 'struct mlx5_priv' kernel test robot

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.