mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +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:
@@ -38,7 +38,7 @@ static uint32_t create_zeropage_e820(struct zero_page *zp, const struct acrn_vm
|
||||
{
|
||||
uint32_t entry_num = vm->e820_entry_num;
|
||||
struct e820_entry *zp_e820 = zp->entries;
|
||||
struct e820_entry *vm_e820 = vm->e820_entries;
|
||||
const struct e820_entry *vm_e820 = vm->e820_entries;
|
||||
|
||||
if ((zp_e820 == NULL) || (vm_e820 == NULL) || (entry_num == 0U) || (entry_num > E820_MAX_ENTRIES)) {
|
||||
pr_err("e820 create error");
|
||||
|
Reference in New Issue
Block a user