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:
Huihuang Shi 2018-12-03 14:58:04 +08:00 committed by wenlingz
parent 48b3cd92ed
commit 42e38dfb53
5 changed files with 8 additions and 8 deletions

View File

@ -387,7 +387,7 @@ int prepare_vm(uint16_t pcpu_id)
#else #else
/* Create vm/vcpu for vm0 */ /* Create vm/vcpu for vm0 */
int prepare_vm0(void) static int prepare_vm0(void)
{ {
int err; int err;
uint16_t i; uint16_t i;

View File

@ -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 * @remark This function must be called after the VHM request corresponding to
* \p vcpu being transferred to the COMPLETE state. * \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; uint16_t cur = vcpu->vcpu_id;
union vhm_request_buffer *req_buf = NULL; 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 -ENODEV No proper handler found.
* @retval -EIO The request spans multiple devices and cannot be emulated. * @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) hv_emulate_pio(const struct acrn_vcpu *vcpu, struct io_request *io_req)
{ {
int32_t status = -ENODEV; int32_t status = -ENODEV;

View File

@ -64,7 +64,7 @@ uint32_t alloc_irq_num(uint32_t req_irq)
* @pre: irq is not in irq_static_mappings * @pre: irq is not in irq_static_mappings
* free irq num allocated via alloc_irq_num() * 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; uint64_t rflags;
@ -130,7 +130,7 @@ uint32_t alloc_irq_vector(uint32_t irq)
} }
/* free the vector allocated via alloc_irq_vector() */ /* 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; struct irq_desc *desc;
uint32_t vr; uint32_t vr;

View File

@ -180,7 +180,7 @@ static int vcpu_do_pending_extint(const struct acrn_vcpu *vcpu)
* 2. native LAPIC interrupt pending/EOI status * 2. native LAPIC interrupt pending/EOI status
* 3. CPU stuck or not * 3. CPU stuck or not
*/ */
void dump_lapic(void) static void dump_lapic(void)
{ {
dev_dbg(ACRN_DBG_INTR, dev_dbg(ACRN_DBG_INTR,
"LAPIC: TIME %08x, init=0x%x cur=0x%x ISR=0x%x IRR=0x%x", "LAPIC: TIME %08x, init=0x%x cur=0x%x ISR=0x%x IRR=0x%x",

View File

@ -710,7 +710,7 @@ reconfig:
/* /*
* Initialize sep state and enable PMU counters * Initialize sep state and enable PMU counters
*/ */
void profiling_start_pmu(void) static void profiling_start_pmu(void)
{ {
uint16_t i; uint16_t i;
@ -751,7 +751,7 @@ void profiling_start_pmu(void)
/* /*
* Reset sep state and Disable all the PMU counters * Reset sep state and Disable all the PMU counters
*/ */
void profiling_stop_pmu(void) static void profiling_stop_pmu(void)
{ {
uint16_t i; uint16_t i;