mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-26 15:31:35 +00:00
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:
parent
4129b72b2e
commit
e4d1c321ad
@ -10,6 +10,7 @@
|
||||
#include <io.h>
|
||||
#include <logmsg.h>
|
||||
#include <platform_acpi_info.h>
|
||||
#include <guest_pm.h>
|
||||
|
||||
int32_t validate_pstate(const struct acrn_vm *vm, uint64_t perf_ctl)
|
||||
{
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <pgtable.h>
|
||||
#include <rtl.h>
|
||||
#include <seed.h>
|
||||
#include "seed_abl.h"
|
||||
|
||||
#define ABL_SEED_LEN 32U
|
||||
struct abl_seed_info {
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <msr.h>
|
||||
#include <per_cpu.h>
|
||||
#include <pgtable.h>
|
||||
#include <vmx.h>
|
||||
|
||||
/**
|
||||
* @pre addr != NULL && addr is 4KB-aligned
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <pgtable.h>
|
||||
#include <dbg_cmd.h>
|
||||
#include <logmsg.h>
|
||||
#include <vboot.h>
|
||||
|
||||
#define ACRN_DBG_PARSE 6
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <vm.h>
|
||||
#include <logmsg.h>
|
||||
#include <deprivilege_boot.h>
|
||||
#include <vboot_info.h>
|
||||
|
||||
#define ACRN_DBG_BOOT 6U
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <assign.h>
|
||||
#include <ept.h>
|
||||
#include <mmu.h>
|
||||
#include <hypercall.h>
|
||||
#include <errno.h>
|
||||
#include <logmsg.h>
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <vm.h>
|
||||
#include <hypercall.h>
|
||||
#include <errno.h>
|
||||
#include <logmsg.h>
|
||||
|
||||
|
@ -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;
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <rtl.h>
|
||||
#include <pci.h>
|
||||
#include <uart16550.h>
|
||||
#include <dbg_cmd.h>
|
||||
|
||||
#define MAX_PORT 0x10000 /* port 0 - 64K */
|
||||
#define DEFAULT_UART_PORT 0x3F8
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <vm.h>
|
||||
#include <init.h>
|
||||
#include <logmsg.h>
|
||||
#include <dump.h>
|
||||
|
||||
#define CALL_TRACE_HIERARCHY_MAX 20U
|
||||
#define DUMP_STACK_SIZE 0x200U
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <errno.h>
|
||||
#include <profiling.h>
|
||||
#include <sbuf.h>
|
||||
#include <hypercall.h>
|
||||
#include <npk_log.h>
|
||||
#include <vm.h>
|
||||
#include <logmsg.h>
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <per_cpu.h>
|
||||
#include <mmu.h>
|
||||
#include <logmsg.h>
|
||||
#include <npk_log.h>
|
||||
|
||||
static int32_t npk_log_setup_ref;
|
||||
static bool npk_log_enabled;
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <sprintf.h>
|
||||
#include <logmsg.h>
|
||||
#include <version.h>
|
||||
#include <shell.h>
|
||||
|
||||
#define TEMP_STR_SIZE 60U
|
||||
#define MAX_STR_SIZE 256U
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include <types.h>
|
||||
#include <per_cpu.h>
|
||||
#include <trace.h>
|
||||
|
||||
#define TRACE_CUSTOM 0xFCU
|
||||
#define TRACE_FUNC_ENTER 0xFDU
|
||||
|
@ -128,7 +128,7 @@ static uint8_t vuart_intr_reason(const struct acrn_vuart *vu)
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct acrn_vuart *find_vuart_by_port(struct acrn_vm *vm, uint16_t offset)
|
||||
static struct acrn_vuart *find_vuart_by_port(struct acrn_vm *vm, uint16_t offset)
|
||||
{
|
||||
uint8_t i;
|
||||
struct acrn_vuart *vu, *ret_vu = NULL;
|
||||
@ -537,7 +537,7 @@ static void vuart_setup_connection(struct acrn_vm *vm,
|
||||
}
|
||||
}
|
||||
|
||||
void vuart_deinit_connect(struct acrn_vuart *vu)
|
||||
static void vuart_deinit_connect(struct acrn_vuart *vu)
|
||||
{
|
||||
struct acrn_vuart *t_vu = vu->target_vu;
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#include <logmsg.h>
|
||||
#include <security.h>
|
||||
|
||||
void __stack_chk_fail(void)
|
||||
{
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include <types.h>
|
||||
#include <pci.h>
|
||||
#include <console.h>
|
||||
|
||||
size_t console_write(__unused const char *str, __unused size_t len)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user