git: 03f9cc89e1f5 - main - arm64: Fix "set-but-not-used" warnings in the pmap
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Dec 2021 17:49:53 UTC
The branch main has been updated by alc:
URL: https://cgit.FreeBSD.org/src/commit/?id=03f9cc89e1f5ddf5f54785cb10f551ab94d139ac
commit 03f9cc89e1f5ddf5f54785cb10f551ab94d139ac
Author: Alan Cox <alc@FreeBSD.org>
AuthorDate: 2021-12-27 17:37:04 +0000
Commit: Alan Cox <alc@FreeBSD.org>
CommitDate: 2021-12-27 17:48:15 +0000
arm64: Fix "set-but-not-used" warnings in the pmap
MFC after: 1 week
---
sys/arm64/arm64/pmap.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
index 0d1e604f22ef..6d12f66807c3 100644
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -2113,7 +2113,7 @@ retry:
void
pmap_release(pmap_t pmap)
{
- boolean_t rv;
+ boolean_t rv __diagused;
struct spglist free;
struct asid_set *set;
vm_page_t m;
@@ -2839,7 +2839,7 @@ pmap_pv_insert_l2(pmap_t pmap, vm_offset_t va, pd_entry_t l2e, u_int flags,
static void
pmap_remove_kernel_l2(pmap_t pmap, pt_entry_t *l2, vm_offset_t va)
{
- pt_entry_t newl2, oldl2;
+ pt_entry_t newl2, oldl2 __diagused;
vm_page_t ml3;
vm_paddr_t ml3pa;
@@ -5376,7 +5376,7 @@ pmap_ts_referenced(vm_page_t m)
pv_entry_t pv, pvf;
pmap_t pmap;
struct rwlock *lock;
- pd_entry_t *pde, tpde;
+ pd_entry_t *pde, tpde __diagused;
pt_entry_t *pte, tpte;
vm_offset_t va;
vm_paddr_t pa;
@@ -6918,7 +6918,7 @@ pmap_map_io_transient(vm_page_t page[], vm_offset_t vaddr[], int count,
{
vm_paddr_t paddr;
boolean_t needs_mapping;
- int error, i;
+ int error __diagused, i;
/*
* Allocate any KVA space that we need, this is done in a separate