* [avpatel:riscv_trace_support_v6 26/89] drivers/iommu/riscv/iommu.c:1287:15: error: call to undeclared function 'virt_to_pfn'; ISO C99 and later do not support implicit function declarations
@ 2026-11-17 6:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-17 6:00 UTC (permalink / raw)
To: Andrew Jones; +Cc: llvm, oe-kbuild-all, Anup Patel
tree: https://github.com/avpatel/linux.git riscv_trace_support_v6
head: 1dab2361933785691d1874856d9e368c5be79b2c
commit: cbdcd79d57964765c2aa1e5a50ce2d65cd95eb0b [26/89] iommu/riscv: Add IRQ domain for interrupt remapping
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20261117/202611171308.vQrnsvMp-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261117/202611171308.vQrnsvMp-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/202611171308.vQrnsvMp-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/iommu/riscv/iommu.c:1287:15: error: call to undeclared function 'virt_to_pfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1287 | dc.msiptp = virt_to_pfn(domain->msi_root) |
| ^
drivers/iommu/riscv/iommu.c:1287:15: note: did you mean 'virt_to_kpte'?
include/linux/pgtable.h:175:22: note: 'virt_to_kpte' declared here
175 | static inline pte_t *virt_to_kpte(unsigned long vaddr)
| ^
1 error generated.
vim +/virt_to_pfn +1287 drivers/iommu/riscv/iommu.c
1261
1262 static int riscv_iommu_attach_paging_domain(struct iommu_domain *iommu_domain,
1263 struct device *dev,
1264 struct iommu_domain *old)
1265 {
1266 struct riscv_iommu_domain *domain = iommu_domain_to_riscv(iommu_domain);
1267 struct riscv_iommu_device *iommu = dev_to_iommu(dev);
1268 struct riscv_iommu_info *info = dev_iommu_priv_get(dev);
1269 struct pt_iommu_riscv_64_hw_info pt_info;
1270 struct riscv_iommu_dc dc = {0};
1271 int ret;
1272
1273 pt_iommu_riscv_64_hw_info(&domain->riscvpt, &pt_info);
1274
1275 if (!riscv_iommu_pt_supported(iommu, pt_info.fsc_iosatp_mode))
1276 return -ENODEV;
1277
1278 ret = riscv_iommu_ir_attach_paging_domain(domain, dev);
1279 if (ret)
1280 return ret;
1281
1282 dc.fsc = FIELD_PREP(RISCV_IOMMU_PC_FSC_MODE, pt_info.fsc_iosatp_mode) |
1283 FIELD_PREP(RISCV_IOMMU_PC_FSC_PPN, pt_info.ppn);
1284 dc.ta = FIELD_PREP(RISCV_IOMMU_PC_TA_PSCID, domain->pscid) | RISCV_IOMMU_PC_TA_V;
1285
1286 if (domain->msi_root) {
> 1287 dc.msiptp = virt_to_pfn(domain->msi_root) |
1288 FIELD_PREP(RISCV_IOMMU_DC_MSIPTP_MODE,
1289 RISCV_IOMMU_DC_MSIPTP_MODE_FLAT);
1290 dc.msi_addr_mask = domain->msi_addr_mask;
1291 dc.msi_addr_pattern = domain->msi_addr_pattern;
1292 }
1293
1294 if (riscv_iommu_bond_link(domain, dev))
1295 return -ENOMEM;
1296
1297 riscv_iommu_iodir_update(iommu, dev, &dc);
1298 riscv_iommu_bond_unlink(info->domain, dev);
1299 info->domain = domain;
1300
1301 return 0;
1302 }
1303
--
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-11-17 6:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 6:00 [avpatel:riscv_trace_support_v6 26/89] drivers/iommu/riscv/iommu.c:1287:15: error: call to undeclared function 'virt_to_pfn'; ISO C99 and later do not support implicit function declarations 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.