The branch main has been updated by br: URL: https://cgit.FreeBSD.org/src/commit/?id=7eb71fd267c6cab43650720b9ed89f72cdcc5a3b
commit 7eb71fd267c6cab43650720b9ed89f72cdcc5a3b Author: Ruslan Bukin <[email protected]> AuthorDate: 2026-05-16 20:17:44 +0000 Commit: Ruslan Bukin <[email protected]> CommitDate: 2026-05-16 20:17:44 +0000 riscv: fix GENERIC-NODEBUG build Reported by: bz --- sys/riscv/iommu/iommu_pmap.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sys/riscv/iommu/iommu_pmap.c b/sys/riscv/iommu/iommu_pmap.c index 751ba4cf1ac3..a760f9d922e6 100644 --- a/sys/riscv/iommu/iommu_pmap.c +++ b/sys/riscv/iommu/iommu_pmap.c @@ -179,6 +179,7 @@ pmap_l3(struct riscv_iommu_pmap *pmap, vm_offset_t va) return (pmap_l2_to_l3(l2, va)); } +#ifdef INVARIANTS static __inline void pmap_resident_count_inc(struct riscv_iommu_pmap *pmap, int count) { @@ -197,6 +198,17 @@ pmap_resident_count_dec(struct riscv_iommu_pmap *pmap, int count) pmap->sp_resident_count, count)); pmap->sp_resident_count -= count; } +#else +static __inline void +pmap_resident_count_inc(struct riscv_iommu_pmap *pmap, int count) +{ +} + +static __inline void +pmap_resident_count_dec(struct riscv_iommu_pmap *pmap, int count) +{ +} +#endif /*************************************************** * Page table page management routines.....
