git: 8c3149be5486 - main - amd64: plug set-but-not-used vars in pmap
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Dec 2021 16:37:31 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=8c3149be5486e999c7d08585810e4dda5e3c20a3 commit 8c3149be5486e999c7d08585810e4dda5e3c20a3 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-09 16:20:45 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-12-09 16:37:26 +0000 amd64: plug set-but-not-used vars in pmap Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/amd64/amd64/pmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 153664698e43..f6efce1303d4 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -3732,7 +3732,8 @@ pmap_flush_cache_phys_range(vm_paddr_t spa, vm_paddr_t epa, vm_memattr_t mattr) { pt_entry_t *pte; vm_offset_t vaddr; - int error, pte_bits; + int error __diagused; + int pte_bits; KASSERT((spa & PAGE_MASK) == 0, ("pmap_flush_cache_phys_range: spa not page-aligned")); @@ -7729,7 +7730,7 @@ pmap_unwire(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) pml4_entry_t *pml4e; pdp_entry_t *pdpe; pd_entry_t *pde; - pt_entry_t *pte, PG_V, PG_G; + pt_entry_t *pte, PG_V, PG_G __diagused; PG_V = pmap_valid_bit(pmap); PG_G = pmap_global_bit(pmap);