Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 2021 05:34:59 GMT
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 01e115ab83a4 - main - vm_phys: #include vm_extern
Message-ID:  <202112310534.1BV5Yxeb032514@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112310534.1BV5Yxeb032514>