mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: treewide: fix 'Variable should be declared static'
Declare a variable with the static qualifier if it is of file scope and not used in another file. v1 -> v2: * remove the unnecessary change to the following variables, which is due to the report issue struct multiboot_info *mbi = (struct multiboot_info *) (HPA2HVA((uint64_t)boot_regs[1])); struct multiboot_mmap *mmap = (struct multiboot_mmap *) HPA2HVA((uint64_t)mbi->mi_mmap_addr); Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -32,7 +32,6 @@ void ioapic_get_rte(uint32_t irq, union ioapic_rte *rte);
|
||||
void suspend_ioapic(void);
|
||||
void resume_ioapic(void);
|
||||
|
||||
extern uint8_t legacy_irq_to_pin[NR_LEGACY_IRQ];
|
||||
extern uint8_t pic_ioapic_pin_map[NR_LEGACY_PIN];
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
|
Reference in New Issue
Block a user