mirror of
https://github.com/opnsense/src.git
synced 2026-03-03 22:01:37 -05:00
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: c606ab59e7 vm_extern: use standard address checkers everywhere
This commit is contained in:
parent
029abd3b29
commit
01e115ab83
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue