pmap: silence warnings

This commit is contained in:
mmacy 2018-05-19 05:58:05 +00:00
parent 9014fcaa8a
commit f437b75cf6

View File

@ -7366,6 +7366,7 @@ pmap_activate_sw(struct thread *td)
u_int cpuid;
struct amd64tss *tssp;
rflags = 0;
oldpmap = PCPU_GET(curpmap);
pmap = vmspace_pmap(td->td_proc->p_vmspace);
if (oldpmap == pmap)
@ -7680,7 +7681,7 @@ pmap_map_io_transient(vm_page_t page[], vm_offset_t vaddr[], int count,
vm_paddr_t paddr;
boolean_t needs_mapping;
pt_entry_t *pte;
int cache_bits, error, i;
int cache_bits, error __unused, i;
/*
* Allocate any KVA space that we need, this is done in a separate