* [avpatel:riscv_trace_support_v4 16/58] drivers/iommu/riscv/iommu-ir.c:325:27: error: implicit declaration of function 'virt_to_pfn'; did you mean 'virt_to_phys'?
@ 2026-07-28 6:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-28 6:05 UTC (permalink / raw)
To: Andrew Jones; +Cc: oe-kbuild-all, Anup Patel
tree: https://github.com/avpatel/linux.git riscv_trace_support_v4
head: 11d3b03554ac726b2a53aef3fd1acb7218b6af8e
commit: f3472a45187c7023d4a5a6f068f72c26d840dd88 [16/58] iommu/riscv: Add guest file irqbypass support
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260728/202607281312.zA3zDZxe-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260728/202607281312.zA3zDZxe-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/202607281312.zA3zDZxe-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/iommu/riscv/iommu-ir.c: In function 'riscv_iommu_ir_msiptp_update':
>> drivers/iommu/riscv/iommu-ir.c:325:27: error: implicit declaration of function 'virt_to_pfn'; did you mean 'virt_to_phys'? [-Wimplicit-function-declaration]
325 | .msiptp = virt_to_pfn(domain->msi_root) |
| ^~~~~~~~~~~
| virt_to_phys
vim +325 drivers/iommu/riscv/iommu-ir.c
306
307 static void riscv_iommu_ir_msiptp_update(struct riscv_iommu_domain *domain)
308 {
309 struct pt_iommu_riscv_64_hw_info pt_info, gstage_info;
310 struct riscv_iommu_device *iommu, *prev;
311 struct riscv_iommu_bond *bond;
312 struct riscv_iommu_dc new_dc;
313
314 pt_iommu_riscv_64_hw_info(&domain->riscvpt, &pt_info);
315 pt_iommu_riscv_64_hw_info(&domain->gstage_riscvpt, &gstage_info);
316
317 new_dc = (struct riscv_iommu_dc){
318 .ta = FIELD_PREP(RISCV_IOMMU_PC_TA_PSCID, domain->pscid) |
319 RISCV_IOMMU_PC_TA_V,
320 .iohgatp = FIELD_PREP(RISCV_IOMMU_DC_IOHGATP_MODE, gstage_info.fsc_iosatp_mode) |
321 FIELD_PREP(RISCV_IOMMU_DC_IOHGATP_GSCID, domain->gscid) |
322 FIELD_PREP(RISCV_IOMMU_DC_IOHGATP_PPN, gstage_info.ppn),
323 .fsc = FIELD_PREP(RISCV_IOMMU_PC_FSC_MODE, pt_info.fsc_iosatp_mode) |
324 FIELD_PREP(RISCV_IOMMU_PC_FSC_PPN, pt_info.ppn),
> 325 .msiptp = virt_to_pfn(domain->msi_root) |
326 FIELD_PREP(RISCV_IOMMU_DC_MSIPTP_MODE,
327 RISCV_IOMMU_DC_MSIPTP_MODE_FLAT),
328 .msi_addr_mask = domain->msi_addr_mask,
329 .msi_addr_pattern = domain->msi_addr_pattern,
330 };
331
332 /* Like riscv_iommu_ir_msitbl_inval(), synchronize with riscv_iommu_bond_link() */
333 smp_mb();
334
335 rcu_read_lock();
336
337 prev = NULL;
338 list_for_each_entry_rcu(bond, &domain->bonds, list) {
339 iommu = dev_to_iommu(bond->dev);
340 if (iommu == prev)
341 continue;
342
343 riscv_iommu_iodir_update(iommu, bond->dev, &new_dc);
344 prev = iommu;
345 }
346
347 rcu_read_unlock();
348 }
349
--
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-07-28 6:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28 6:05 [avpatel:riscv_trace_support_v4 16/58] drivers/iommu/riscv/iommu-ir.c:325:27: error: implicit declaration of function 'virt_to_pfn'; did you mean 'virt_to_phys'? 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.