mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
HV: ve820 fix "Casting operation to a pointer"
ACRN Coding guidelines requires two different types pointer can't convert to each other, except void *. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
This commit is contained in:
@@ -46,5 +46,5 @@ static const struct e820_entry ve820_entry[VE820_ENTRIES_APL_MRB] = {
|
||||
void create_prelaunched_vm_e820(struct acrn_vm *vm)
|
||||
{
|
||||
vm->e820_entry_num = VE820_ENTRIES_APL_MRB;
|
||||
vm->e820_entries = (struct e820_entry *)ve820_entry;
|
||||
vm->e820_entries = ve820_entry;
|
||||
}
|
||||
|
@@ -46,5 +46,5 @@ static const struct e820_entry ve820_entry[VE820_ENTRIES_DNV_CB2] = {
|
||||
void create_prelaunched_vm_e820(struct acrn_vm *vm)
|
||||
{
|
||||
vm->e820_entry_num = VE820_ENTRIES_DNV_CB2;
|
||||
vm->e820_entries = (struct e820_entry *)ve820_entry;
|
||||
vm->e820_entries = ve820_entry;
|
||||
}
|
||||
|
@@ -45,5 +45,5 @@ static const struct e820_entry ve820_entry[VE820_ENTRIES_KBL_NUC_i7] = {
|
||||
void create_prelaunched_vm_e820(struct acrn_vm *vm)
|
||||
{
|
||||
vm->e820_entry_num = VE820_ENTRIES_KBL_NUC_i7;
|
||||
vm->e820_entries = (struct e820_entry *)ve820_entry;
|
||||
vm->e820_entries = ve820_entry;
|
||||
}
|
||||
|
@@ -188,7 +188,7 @@ static void prepare_prelaunched_vm_memmap(struct acrn_vm *vm, const struct acrn_
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0U; i < vm->e820_entry_num; i++) {
|
||||
struct e820_entry *entry = &(vm->e820_entries[i]);
|
||||
const struct e820_entry *entry = &(vm->e820_entries[i]);
|
||||
|
||||
if (entry->length == 0UL) {
|
||||
break;
|
||||
@@ -327,7 +327,7 @@ static void prepare_sos_vm_memmap(struct acrn_vm *vm)
|
||||
|
||||
const struct e820_entry *entry;
|
||||
uint32_t entries_count = vm->e820_entry_num;
|
||||
struct e820_entry *p_e820 = vm->e820_entries;
|
||||
const struct e820_entry *p_e820 = vm->e820_entries;
|
||||
const struct e820_mem_params *p_e820_mem_info = get_e820_mem_info();
|
||||
|
||||
pr_dbg("sos_vm: bottom memory - 0x%llx, top memory - 0x%llx\n",
|
||||
|
Reference in New Issue
Block a user