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
This commit is contained in:
Doug Moore 2021-12-31 00:23:46 -06:00
parent 01e115ab83
commit e6930b1c5f

View File

@ -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;