Skip to contentSkip to conversation

iommupt: Fixup build warning by using BIT_ULL() for RISCVPT_NC/IO

PATCH Applied [email protected] 3 participants 3 messages May 12 – May 15

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommupt: Fixup build warning by using BIT_ULL() for RISCVPT_NC/IO

From: Fangyu Yu <[email protected]>

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")
---
 drivers/iommu/generic_pt/fmt/riscv.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iommu/generic_pt/fmt/riscv.h +2 -2
index 2648bb57953e..ae9a76514416 100644
@@ -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] */
Signature · 1 line
2.50.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Tue, May 12, 2026 at 10:43:30PM +0800, [email protected] wrote:

From: Fangyu Yu <[email protected]>

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

Quoted 7 lines
Fixes 6c21eb174c6c ("iommupt: Encode IOMMU_MMIO/IOMMU_CACHE via RISC-V Svpbmt bits")
---
 drivers/iommu/generic_pt/fmt/riscv.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Jason

maintainer Applied
#2 lore raw
In reply to [email protected]
Quoted 5 lines · On Tue, May 12, 2026 at 10:43:30PM +0800, [email protected] wrote:

From: Fangyu Yu <[email protected]>

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

Quoted 7 lines
Fixes 6c21eb174c6c ("iommupt: Encode IOMMU_MMIO/IOMMU_CACHE via RISC-V Svpbmt bits")
---
 drivers/iommu/generic_pt/fmt/riscv.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.