mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user