mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
HV: prototyping non-static function
Includes header file of non-static function, and declare the in-file use function static. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -189,7 +189,8 @@ static void pm1ab_io_write(__unused struct vm_io_handler *hdlr,
|
||||
io_write(v, addr, width);
|
||||
}
|
||||
|
||||
void register_gas_io_handler(struct vm *vm, struct acpi_generic_address *gas)
|
||||
static void
|
||||
register_gas_io_handler(struct vm *vm, struct acpi_generic_address *gas)
|
||||
{
|
||||
uint8_t io_len[5] = {0, 1, 2, 4, 8};
|
||||
struct vm_io_range gas_io;
|
||||
|
@@ -62,7 +62,7 @@ static inline const char *pinstate_str(bool asserted)
|
||||
return (asserted) ? "asserted" : "deasserted";
|
||||
}
|
||||
|
||||
struct vioapic *
|
||||
static struct vioapic *
|
||||
vm_ioapic(struct vm *vm)
|
||||
{
|
||||
return (struct vioapic *)vm->arch_vm.virt_ioapic;
|
||||
|
@@ -35,6 +35,7 @@
|
||||
#include "instr_emul.h"
|
||||
|
||||
#include "vlapic_priv.h"
|
||||
#include "vlapic.h"
|
||||
|
||||
#define VLAPIC_VERBOS 0
|
||||
#define PRIO(x) ((x) >> 4)
|
||||
@@ -1709,7 +1710,7 @@ vlapic_enabled(struct vlapic *vlapic)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
vlapic_set_tmr(struct vlapic *vlapic, uint32_t vector, bool level)
|
||||
{
|
||||
struct lapic_regs *lapic;
|
||||
@@ -1739,7 +1740,7 @@ vlapic_apicv_batch_set_tmr(struct vlapic *vlapic)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
vlapic_apicv_set_tmr(struct vlapic *vlapic, uint32_t vector, bool level)
|
||||
{
|
||||
if (vlapic->ops.apicv_set_tmr != NULL) {
|
||||
|
@@ -51,7 +51,7 @@ static void enable_msr_interception(uint8_t *bitmap, uint32_t msr)
|
||||
}
|
||||
|
||||
/* not used now just leave it for some cases it may be used as API*/
|
||||
void disable_msr_interception(uint8_t *bitmap, uint32_t msr)
|
||||
static void disable_msr_interception(uint8_t *bitmap, uint32_t msr)
|
||||
{
|
||||
uint8_t *read_map;
|
||||
uint8_t *write_map;
|
||||
|
@@ -929,7 +929,7 @@ static void vpic_elc_io_write(__unused struct vm_io_handler *hdlr,
|
||||
}
|
||||
}
|
||||
|
||||
void vpic_register_io_handler(struct vm *vm)
|
||||
static void vpic_register_io_handler(struct vm *vm)
|
||||
{
|
||||
struct vm_io_range master_range = {
|
||||
.flags = IO_ATTR_RW,
|
||||
|
Reference in New Issue
Block a user