HomeFreeBSD

vm_phys_init: Quiet unused but set warnings about npages.

Description

vm_phys_init: Quiet unused but set warnings about npages.

npages is used in two optional cases:

  • to conditionally create a separate DMA32 free list
  • to index vm_page_array for VM_PHYSSEG_SPARSE

Add in more #ifdef's around npages statements.

Reviewed by: alc, markj
Differential Revision: https://reviews.freebsd.org/D34887

Details

Provenance
jhbAuthored on Apr 18 2022, 7:06 PM
Reviewer
alc
Differential Revision
D34887: vm_phys_init: Quiet unused but set warnings about npages.
Parents
rGd139909d6e8d: destroy_dev_sched*: Don't hold Giant for all deferred destroy_dev.
Branches
Unknown
Tags
Unknown