git: e6930b1c5f8f - main - vm_phys: convert error back to warning

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

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

commit e6930b1c5f8f9307f72eda1b5b3c504dc009cbc6
Author:     Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2021-12-31 06:23:46 +0000
Commit:     Doug Moore <dougm@FreeBSD.org>
CommitDate: 2021-12-31 06:23:46 +0000

    vm_phys: convert error back to warning
    
    Move an assignment back to where it was before, to turn the
    defined-but-not-used error back into a set-but-not-used warning.
    
    Fixes:  01e115ab83a4 vm_phys: #include vm_extern
---
 sys/vm/vm_phys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c
index 51d33d66324f..6798c55cc91c 100644
--- a/sys/vm/vm_phys.c
+++ b/sys/vm/vm_phys.c
@@ -1646,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;