mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +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:
@@ -14,15 +14,15 @@ spinlock_t trampoline_spinlock = {
|
||||
.tail = 0U
|
||||
};
|
||||
|
||||
spinlock_t up_count_spinlock = {
|
||||
static spinlock_t up_count_spinlock = {
|
||||
.head = 0U,
|
||||
.tail = 0U
|
||||
};
|
||||
|
||||
struct per_cpu_region *per_cpu_data_base_ptr;
|
||||
uint16_t phys_cpu_num = 0U;
|
||||
uint64_t pcpu_sync = 0UL;
|
||||
volatile uint16_t up_count = 0U;
|
||||
static uint64_t pcpu_sync = 0UL;
|
||||
static volatile uint16_t up_count = 0U;
|
||||
|
||||
/* physical cpu active bitmap, support up to 64 cpus */
|
||||
uint64_t pcpu_active_bitmap = 0UL;
|
||||
|
||||
Reference in New Issue
Block a user