Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2022 17:32:28 GMT
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 87e6f3d27eba - stable/13 - vm_phys: #include vm_extern
Message-ID:  <202207121732.26CHWSIV065440@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dougm:

URL: https://cgit.FreeBSD.org/src/commit/?id=87e6f3d27ebad83f1af96a020fd9f18a8e652a68

commit 87e6f3d27ebad83f1af96a020fd9f18a8e652a68
Author:     Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2021-12-31 05:31:18 +0000
Commit:     Doug Moore <dougm@FreeBSD.org>
CommitDate: 2022-07-12 16:26:04 +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
    
    (cherry picked from commit 01e115ab83a4b82216e02198dbcc7c794a752711)
---
 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?202207121732.26CHWSIV065440>