Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH] iommupt: Fixup build warning by using BIT_ULL() for RISCVPT_NC/IO
@ 2026-05-12 14:43 fangyu.yu
  2026-05-12 15:12 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: fangyu.yu @ 2026-05-12 14:43 UTC (permalink / raw)
  To: joro, will, robin.murphy, pjw, palmer, aou, alex, jgg, kevin.tian,
	jgg, nutty.liu
  Cc: guoren, kvm, iommu, linux-riscv, linux-kernel, Fangyu Yu,
	kernel test robot

From: Fangyu Yu <fangyu.yu@linux.alibaba.com>

Fix build warning on 32-bit configurations by using BIT_ULL() for
RISCVPT_NC and RISCVPT_IO.

Fixes: 6c21eb174c6c ("iommupt: Encode IOMMU_MMIO/IOMMU_CACHE via RISC-V Svpbmt bits")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605121350.wZxB51k0-lkp@intel.com/
Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
---
 drivers/iommu/generic_pt/fmt/riscv.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iommu/generic_pt/fmt/riscv.h b/drivers/iommu/generic_pt/fmt/riscv.h
index 2648bb57953e..ae9a76514416 100644
--- a/drivers/iommu/generic_pt/fmt/riscv.h
+++ b/drivers/iommu/generic_pt/fmt/riscv.h
@@ -64,8 +64,8 @@ enum {
 	RISCVPT_PPN64 = GENMASK_ULL(53, 10),
 	RISCVPT_PPN64_64K = GENMASK_ULL(53, 14),
 	RISCVPT_PBMT = GENMASK_ULL(62, 61),
-	RISCVPT_NC = BIT(61),
-	RISCVPT_IO = BIT(62),
+	RISCVPT_NC = BIT_ULL(61),
+	RISCVPT_IO = BIT_ULL(62),
 	RISCVPT_N = BIT_ULL(63),
 
 	/* Svnapot encodings for ppn[0] */
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-12 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 14:43 [PATCH] iommupt: Fixup build warning by using BIT_ULL() for RISCVPT_NC/IO fangyu.yu
2026-05-12 15:12 ` Jason Gunthorpe

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