Date: Sat, 16 May 2026 20:20:35 +0000 From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7eb71fd267c6 - main - riscv: fix GENERIC-NODEBUG build Message-ID: <6a08d193.39c1e.4948f08d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by br: URL: https://cgit.FreeBSD.org/src/commit/?id=7eb71fd267c6cab43650720b9ed89f72cdcc5a3b commit 7eb71fd267c6cab43650720b9ed89f72cdcc5a3b Author: Ruslan Bukin <br@FreeBSD.org> AuthorDate: 2026-05-16 20:17:44 +0000 Commit: Ruslan Bukin <br@FreeBSD.org> 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.....home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a08d193.39c1e.4948f08d>
