hv:fix "no prototype for non-static function"

change some APIs to static or include header file

Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi
2019-07-08 15:02:50 +08:00
committed by ACRN System Integration
parent 4129b72b2e
commit e4d1c321ad
17 changed files with 21 additions and 5 deletions

View File

@@ -13,6 +13,7 @@
#include <logmsg.h>
#include <acrn_hv_defs.h>
#include <vm.h>
#include <console.h>
struct hv_timer console_timer;
@@ -54,7 +55,7 @@ struct acrn_vuart *vm_console_vuart(struct acrn_vm *vm)
* @pre vu != NULL
* @pre vu->active == true
*/
void vuart_console_rx_chars(struct acrn_vuart *vu)
static void vuart_console_rx_chars(struct acrn_vuart *vu)
{
char ch = -1;
@@ -76,7 +77,7 @@ void vuart_console_rx_chars(struct acrn_vuart *vu)
/**
* @pre vu != NULL
*/
void vuart_console_tx_chars(struct acrn_vuart *vu)
static void vuart_console_tx_chars(struct acrn_vuart *vu)
{
char c;
@@ -85,7 +86,7 @@ void vuart_console_tx_chars(struct acrn_vuart *vu)
}
}
struct acrn_vuart *vuart_console_active(void)
static struct acrn_vuart *vuart_console_active(void)
{
struct acrn_vm *vm = NULL;
struct acrn_vuart *vu = NULL;