mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-20 22:30:39 +00:00
The HV will be built failed with below compiler message: common/efi_mmap.c: In function ‘init_efi_mmap_entries’: common/efi_mmap.c:41:11: error: unused variable ‘efi_memdesc_nr’ [-Werror=unused-variable] uint32_t efi_memdesc_nr = uefi_info->memmap_size / uefi_info->memdesc_size; ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors The root cause is ASSERT() api is for DEBUG only so efi_memdesc_nr is not used in RELEASE code. The patch fix this issue by removing efi_memdesc_nr declaration; Tracked-On: #6834 Signed-off-by: Victor Sun <victor.sun@intel.com> |
||
---|---|---|
.. | ||
delay.c | ||
efi_mmap.c | ||
event.c | ||
hv_main.c | ||
hypercall.c | ||
irq.c | ||
ptdev.c | ||
sched_bvt.c | ||
sched_iorr.c | ||
sched_noop.c | ||
sched_prio.c | ||
schedule.c | ||
softirq.c | ||
ticks.c | ||
timer.c | ||
trusty_hypercall.c | ||
vm_load.c |