diff options
| author | Ruslan Bukin <br@FreeBSD.org> | 2026-05-16 20:17:44 +0000 |
|---|---|---|
| committer | Ruslan Bukin <br@FreeBSD.org> | 2026-05-16 20:17:44 +0000 |
| commit | 7eb71fd267c6cab43650720b9ed89f72cdcc5a3b (patch) | |
| tree | d991ec1abda7e355b5ba53c5b24da53626c87ab9 | |
| parent | 8dd43304b397715a4313bcaebbf493b607a7099f (diff) | |
riscv: fix GENERIC-NODEBUG build
Reported by: bz
| -rw-r--r-- | sys/riscv/iommu/iommu_pmap.c | 12 |
1 files changed, 12 insertions, 0 deletions
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..... |
