From: kernel test robot <lkp@intel.com>
To: Andrew Jones <andrew.jones@oss.qualcomm.com>
Cc: oe-kbuild-all@lists.linux.dev, Anup Patel <anup@brainfault.org>
Subject: [avpatel:riscv_trace_support_v6 51/104] drivers/iommu/riscv/iommu.c:1363:30: error: implicit declaration of function 'virt_to_pfn'; did you mean 'virt_to_phys'?
Date: Thu, 26 Nov 2026 07:23:57 +0800 [thread overview]
Message-ID: <20261126071205.a5FHx1US-lkp@intel.com> (raw)
tree: https://github.com/avpatel/linux.git riscv_trace_support_v6
head: d77c0270e18de0b01434fec8027d8a61ae1f7c00
commit: be5d2309758668a467fd2d50931ae6a12b44552f [51/104] iommu/riscv: Prepare MSI table updates for interrupt remapping
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20261126/20261126071205.a5FHx1US-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/20261126071205.a5FHx1US-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/20261126071205.a5FHx1US-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/iommu/riscv/iommu.c: In function 'riscv_iommu_msi_table_set_dc':
>> drivers/iommu/riscv/iommu.c:1363:30: error: implicit declaration of function 'virt_to_pfn'; did you mean 'virt_to_phys'? [-Wimplicit-function-declaration]
1363 | dc->msiptp = virt_to_pfn(msi_table->root) |
| ^~~~~~~~~~~
| virt_to_phys
vim +1363 drivers/iommu/riscv/iommu.c
1358
1359 static void riscv_iommu_msi_table_set_dc(struct riscv_iommu_msi_table *msi_table,
1360 struct riscv_iommu_dc *dc, bool activate)
1361 {
1362 if (activate) {
> 1363 dc->msiptp = virt_to_pfn(msi_table->root) |
1364 FIELD_PREP(RISCV_IOMMU_DC_MSIPTP_MODE,
1365 RISCV_IOMMU_DC_MSIPTP_MODE_FLAT);
1366 dc->msi_addr_mask = msi_table->msi_addr_mask;
1367 dc->msi_addr_pattern = msi_table->msi_addr_pattern;
1368 } else {
1369 dc->msiptp = 0;
1370 dc->msi_addr_mask = 0;
1371 dc->msi_addr_pattern = 0;
1372 }
1373 }
1374
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-11-25 23:24 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=20261126071205.a5FHx1US-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew.jones@oss.qualcomm.com \
--cc=anup@brainfault.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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.