mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +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:
@@ -24,7 +24,7 @@ static union ioapic_rte saved_rte[CONFIG_NR_IOAPICS][IOAPIC_MAX_PIN];
|
||||
* the irq to ioapic pin mapping should extract from ACPI MADT table
|
||||
* hardcoded here
|
||||
*/
|
||||
uint8_t legacy_irq_to_pin[NR_LEGACY_IRQ] = {
|
||||
static uint8_t legacy_irq_to_pin[NR_LEGACY_IRQ] = {
|
||||
2U, /* IRQ0*/
|
||||
1U, /* IRQ1*/
|
||||
0U, /* IRQ2 connected to Pin0 (ExtInt source of PIC) if existing */
|
||||
@@ -43,7 +43,7 @@ uint8_t legacy_irq_to_pin[NR_LEGACY_IRQ] = {
|
||||
15U, /* IRQ15*/
|
||||
};
|
||||
|
||||
uint64_t legacy_irq_trigger_mode[NR_LEGACY_IRQ] = {
|
||||
static uint64_t legacy_irq_trigger_mode[NR_LEGACY_IRQ] = {
|
||||
IOAPIC_RTE_TRGREDG, /* IRQ0*/
|
||||
IOAPIC_RTE_TRGREDG, /* IRQ1*/
|
||||
IOAPIC_RTE_TRGREDG, /* IRQ2*/
|
||||
|
Reference in New Issue
Block a user