git: 01e115ab83a4 - main - vm_phys: #include vm_extern

From: Doug Moore <dougm_at_FreeBSD.org>
Date: Fri, 31 Dec 2021 05:34:59 UTC
The branch main has been updated by dougm:

URL: https://cgit.FreeBSD.org/src/commit/?id=01e115ab83a4b82216e02198dbcc7c794a752711

commit 01e115ab83a4b82216e02198dbcc7c794a752711
Author:     Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2021-12-31 05:31:18 +0000
Commit:     Doug Moore <dougm@FreeBSD.org>
CommitDate: 2021-12-31 05:31:18 +0000

    vm_phys: #include vm_extern
    
    Arm64 and powerpc don't include vm_extern.h indirectly in vm_phys.c, which
    means that for the sake of those architectures, it must be included explicitly.
    
    Also, fix a set-unused warning that jenkins also found.
    
    Reported by:    Jenkins
    Fixes:  c606ab59e7f9 vm_extern: use standard address checkers everywhere
---
 sys/vm/vm_phys.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c
index 9a13fe23c874..51d33d66324f 100644
--- a/sys/vm/vm_phys.c
+++ b/sys/vm/vm_phys.c
@@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$");
 #include <ddb/ddb.h>
 
 #include <vm/vm.h>
+#include <vm/vm_extern.h>
 #include <vm/vm_param.h>
 #include <vm/vm_kern.h>
 #include <vm/vm_object.h>
@@ -1645,10 +1646,10 @@ vm_phys_early_alloc(int domain, size_t alloc_size)
 	 * the phys_avail selection below.
 	 */
 	biggestsize = 0;
-	mem_index = 0;
 	mem_start = 0;
 	mem_end = -1;
 #ifdef NUMA
+	mem_index = 0;
 	if (mem_affinity != NULL) {
 		for (i = 0;; i++) {
 			size = mem_affinity[i].end - mem_affinity[i].start;