mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-03 01:44:55 +00:00
HV: x86: fix "Global variable should be declared const"
Gloabal variable should be declared constant wherever possible to avoid unintentional modification. Tracked-On: #861 Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -57,7 +57,7 @@ static uint64_t legacy_irq_trigger_mode[NR_LEGACY_IRQ] = {
|
||||
IOAPIC_RTE_TRGREDG, /* IRQ15*/
|
||||
};
|
||||
|
||||
uint8_t pic_ioapic_pin_map[NR_LEGACY_PIN] = {
|
||||
const uint8_t pic_ioapic_pin_map[NR_LEGACY_PIN] = {
|
||||
2U, /* pin0*/
|
||||
1U, /* pin1*/
|
||||
0U, /* pin2*/
|
||||
|
Reference in New Issue
Block a user