mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +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:
@@ -9,7 +9,7 @@
|
||||
#include <ptdev.h>
|
||||
|
||||
/* SOFTIRQ_PTDEV list for all CPUs */
|
||||
struct list_head softirq_dev_entry_list;
|
||||
static struct list_head softirq_dev_entry_list;
|
||||
/* passthrough device link */
|
||||
struct list_head ptdev_list;
|
||||
spinlock_t ptdev_lock;
|
||||
@@ -26,7 +26,7 @@ struct ptdev_remapping_info invalid_entry = {
|
||||
* ptdev_lock
|
||||
* softirq_dev_lock
|
||||
*/
|
||||
spinlock_t softirq_dev_lock;
|
||||
static spinlock_t softirq_dev_lock;
|
||||
|
||||
static void ptdev_enqueue_softirq(struct ptdev_remapping_info *entry)
|
||||
{
|
||||
|
Reference in New Issue
Block a user