kernel: mmu: make virtual region bitmap static

The virtual region bitmap bitarray struct is only used within
the source file, so it can be declared static.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-11-23 11:39:24 -08:00 committed by Christopher Friedt
commit fff9180614

View file

@ -181,8 +181,8 @@ void z_page_frames_dump(void)
* Note that bit #0 is the highest address so that allocation is * Note that bit #0 is the highest address so that allocation is
* done in reverse from highest address. * done in reverse from highest address.
*/ */
SYS_BITARRAY_DEFINE(virt_region_bitmap, SYS_BITARRAY_DEFINE_STATIC(virt_region_bitmap,
CONFIG_KERNEL_VM_SIZE / CONFIG_MMU_PAGE_SIZE); CONFIG_KERNEL_VM_SIZE / CONFIG_MMU_PAGE_SIZE);
static bool virt_region_inited; static bool virt_region_inited;