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
This commit is contained in:
Warner Losh 2022-11-18 10:04:04 -07:00
parent cf325fda86
commit 1a1fd76d0a

View file

@ -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;