git: 1a1fd76d0a36 - main - arm64/pmap: freed only used for PV_STATS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Nov 2022 17:04:31 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1a1fd76d0a36f2d0502836841f0e283597ffcc4d commit 1a1fd76d0a36f2d0502836841f0e283597ffcc4d Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-11-18 17:04:04 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-11-18 17:04:04 +0000 arm64/pmap: freed only used for PV_STATS When PV_STATS is defined, freed is used. Otherwise it isn't. Mark it as __pvused and define __pvused appropriately. Sponsored by: Netflix Reviewed by: tsoome, rpokala, andrew Differential Revision: https://reviews.freebsd.org/D37438 --- sys/arm64/arm64/pmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index 7df16bc41922..3f4665921631 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -180,8 +180,10 @@ __FBSDID("$FreeBSD$"); #ifdef PV_STATS #define PV_STAT(x) do { x ; } while (0) +#define __pvused #else #define PV_STAT(x) do { } while (0) +#define __pvused __unused #endif #define pmap_l0_pindex(v) (NUL2E + NUL1E + ((v) >> L0_SHIFT)) @@ -5405,7 +5407,8 @@ pmap_remove_pages(pmap_t pmap) struct rwlock *lock; int64_t bit; uint64_t inuse, bitmask; - int allfree, field, freed, i, idx, lvl; + int allfree, field, i, idx, lvl; + int freed __pvused; vm_paddr_t pa; lock = NULL;