mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
cf325fda86
commit
1a1fd76d0a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue