From: kernel test robot <lkp@intel.com>
To: Yishai Hadas <yishaih@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Leon Romanovsky <leon@kernel.org>
Subject: [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'
Date: Thu, 10 Jul 2025 08:12:09 +0800 [thread overview]
Message-ID: <202507101012.LbzCjdBi-lkp@intel.com> (raw)
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
reply other threads:[~2025-07-10 0:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202507101012.LbzCjdBi-lkp@intel.com \
--to=lkp@intel.com \
--cc=leon@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yishaih@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.