hv: fix "No prototype for non-static function"
The function not used in extern c file, must add static. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
48b3cd92ed
commit
42e38dfb53
|
@ -387,7 +387,7 @@ int prepare_vm(uint16_t pcpu_id)
|
|||
#else
|
||||
|
||||
/* Create vm/vcpu for vm0 */
|
||||
int prepare_vm0(void)
|
||||
static int prepare_vm0(void)
|
||||
{
|
||||
int err;
|
||||
uint16_t i;
|
||||
|
|
|
@ -45,7 +45,7 @@ emulate_pio_post(struct acrn_vcpu *vcpu, const struct io_request *io_req)
|
|||
* @remark This function must be called after the VHM request corresponding to
|
||||
* \p vcpu being transferred to the COMPLETE state.
|
||||
*/
|
||||
void dm_emulate_pio_post(struct acrn_vcpu *vcpu)
|
||||
static void dm_emulate_pio_post(struct acrn_vcpu *vcpu)
|
||||
{
|
||||
uint16_t cur = vcpu->vcpu_id;
|
||||
union vhm_request_buffer *req_buf = NULL;
|
||||
|
@ -188,7 +188,7 @@ void emulate_io_post(struct acrn_vcpu *vcpu)
|
|||
* @retval -ENODEV No proper handler found.
|
||||
* @retval -EIO The request spans multiple devices and cannot be emulated.
|
||||
*/
|
||||
int32_t
|
||||
static int32_t
|
||||
hv_emulate_pio(const struct acrn_vcpu *vcpu, struct io_request *io_req)
|
||||
{
|
||||
int32_t status = -ENODEV;
|
||||
|
|
|
@ -64,7 +64,7 @@ uint32_t alloc_irq_num(uint32_t req_irq)
|
|||
* @pre: irq is not in irq_static_mappings
|
||||
* free irq num allocated via alloc_irq_num()
|
||||
*/
|
||||
void free_irq_num(uint32_t irq)
|
||||
static void free_irq_num(uint32_t irq)
|
||||
{
|
||||
uint64_t rflags;
|
||||
|
||||
|
@ -130,7 +130,7 @@ uint32_t alloc_irq_vector(uint32_t irq)
|
|||
}
|
||||
|
||||
/* free the vector allocated via alloc_irq_vector() */
|
||||
void free_irq_vector(uint32_t irq)
|
||||
static void free_irq_vector(uint32_t irq)
|
||||
{
|
||||
struct irq_desc *desc;
|
||||
uint32_t vr;
|
||||
|
|
|
@ -180,7 +180,7 @@ static int vcpu_do_pending_extint(const struct acrn_vcpu *vcpu)
|
|||
* 2. native LAPIC interrupt pending/EOI status
|
||||
* 3. CPU stuck or not
|
||||
*/
|
||||
void dump_lapic(void)
|
||||
static void dump_lapic(void)
|
||||
{
|
||||
dev_dbg(ACRN_DBG_INTR,
|
||||
"LAPIC: TIME %08x, init=0x%x cur=0x%x ISR=0x%x IRR=0x%x",
|
||||
|
|
|
@ -710,7 +710,7 @@ reconfig:
|
|||
/*
|
||||
* Initialize sep state and enable PMU counters
|
||||
*/
|
||||
void profiling_start_pmu(void)
|
||||
static void profiling_start_pmu(void)
|
||||
{
|
||||
uint16_t i;
|
||||
|
||||
|
@ -751,7 +751,7 @@ void profiling_start_pmu(void)
|
|||
/*
|
||||
* Reset sep state and Disable all the PMU counters
|
||||
*/
|
||||
void profiling_stop_pmu(void)
|
||||
static void profiling_stop_pmu(void)
|
||||
{
|
||||
uint16_t i;
|
||||
|
||||
|
|
Loading…
Reference in New Issue