aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Moore <dougm@FreeBSD.org>2021-12-31 06:23:46 +0000
committerDoug Moore <dougm@FreeBSD.org>2021-12-31 06:23:46 +0000
commite6930b1c5f8f9307f72eda1b5b3c504dc009cbc6 (patch)
treed3cde9054d7eedbf69596ff88311ba75ecfe66b9
parent01e115ab83a4b82216e02198dbcc7c794a752711 (diff)
downloadsrc-e6930b1c5f8f9307f72eda1b5b3c504dc009cbc6.tar.gz
src-e6930b1c5f8f9307f72eda1b5b3c504dc009cbc6.zip
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
-rw-r--r--sys/vm/vm_phys.c2
1 files changed, 1 insertions, 1 deletions
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;