HV: guest: cleanup of remaining integral type violations

Clean up most reported integral-type-related violations still existing under
arch/x86/guest/. The remaining reports that are not trivial to suppress will be
explained in separate documents.

Also move acpi_info outside acrn_common.h as the structure is no longer shared
with DM.

v1 -> v2:

    * Move struct acpi_info to bsp_extern.h

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Junjie Mao
2018-07-20 18:14:52 +08:00
committed by lijinxia
parent 1a1ee93656
commit 112b5b820c
7 changed files with 18 additions and 17 deletions

View File

@@ -19,6 +19,14 @@
#define BSP_EXTERN_H
#define UOS_DEFAULT_START_ADDR (0x100000000UL)
struct acpi_info {
uint8_t x86_family;
uint8_t x86_model;
struct pm_s_state_data pm_s_state;
/* TODO: we can add more acpi info field here if needed. */
};
/**********************************/
/* EXTERNAL VARIABLES */
/**********************************/

View File

@@ -11,8 +11,8 @@
#include <hypervisor.h>
const struct acpi_info host_acpi_info = {
-1, /* x86 family */
-1, /* x86 model */
0, /* x86 family */
0, /* x86 model */
{
{SPACE_SYSTEM_IO, 0, 0, 0, 0}, /* PM1a EVT */
{SPACE_SYSTEM_IO, 0, 0, 0, 0}, /* PM1b EVT */