Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* drivers/infiniband/hw/mlx5/mr.c:913:20: error: no member named 'tph_req_type' in 'struct pci_dev'
@ 2026-05-12 23:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-12 23:14 UTC (permalink / raw)
  To: Zhiping Zhang; +Cc: llvm, oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Zhiping-Zhang/vfio-add-dma-buf-get_tph-callback-and-DMA_BUF_TPH-feature/20260505-063643
head:   b58a906ae381ef91f4e88afd4862bee58a0c7bf2
commit: b58a906ae381ef91f4e88afd4862bee58a0c7bf2 RDMA/mlx5: get tph for p2p access when registering dma-buf mr
date:   8 days ago
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260513/202605130114.zFnPmvo1-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260513/202605130114.zFnPmvo1-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/202605130114.zFnPmvo1-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/infiniband/hw/mlx5/mr.c:913:20: error: no member named 'tph_req_type' in 'struct pci_dev'
     913 |         st_width = (pdev->tph_req_type == PCI_TPH_REQ_EXT_TPH) ? 16 : 8;
         |                     ~~~~  ^
   1 error generated.


vim +913 drivers/infiniband/hw/mlx5/mr.c

   903	
   904	static void get_tph_mr_dmabuf(struct mlx5_ib_dev *dev, int fd, u16 *st_index,
   905				      u8 *ph)
   906	{
   907		struct pci_dev *pdev = dev->mdev->pdev;
   908		struct dma_buf *dmabuf;
   909		u16 steering_tag;
   910		u8 st_width;
   911		int ret;
   912	
 > 913		st_width = (pdev->tph_req_type == PCI_TPH_REQ_EXT_TPH) ? 16 : 8;
   914	
   915		dmabuf = dma_buf_get(fd);
   916		if (IS_ERR(dmabuf))
   917			return;
   918	
   919		if (!dmabuf->ops->get_tph)
   920			goto end_dbuf_put;
   921	
   922		ret = dmabuf->ops->get_tph(dmabuf, &steering_tag, ph, st_width);
   923		if (ret) {
   924			mlx5_ib_dbg(dev, "get_tph failed (%d)\n", ret);
   925			goto end_dbuf_put;
   926		}
   927	
   928		ret = mlx5_st_alloc_index_by_tag(dev->mdev, steering_tag, st_index);
   929		if (ret) {
   930			*ph = MLX5_IB_NO_PH;
   931			mlx5_ib_dbg(dev, "st_alloc_index_by_tag failed (%d)\n", ret);
   932		}
   933	
   934	end_dbuf_put:
   935		dma_buf_put(dmabuf);
   936	}
   937	

--
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:[~2026-05-12 23:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 23:14 drivers/infiniband/hw/mlx5/mr.c:913:20: error: no member named 'tph_req_type' in 'struct pci_dev' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox