HV: fix violations touched type conversion

ACRN Coding guidelines requires type conversion shall be explicity.

Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi
2019-07-09 15:40:13 +08:00
committed by wenlingz
parent 5d6c9c33ca
commit 714162fb8b
13 changed files with 26 additions and 25 deletions

View File

@@ -43,7 +43,7 @@ int32_t parse_hv_cmdline(void)
while ((*end != ' ') && ((*end) != '\0'))
end++;
if (!handle_dbg_cmd(start, end - start)) {
if (!handle_dbg_cmd(start, (int32_t)(end - start))) {
/* if not handled by handle_dbg_cmd, it can be handled further */
}
start = end + 1;

View File

@@ -299,7 +299,7 @@ static int32_t depri_boot_sw_loader(struct acrn_vm *vm)
* We copy the info saved in depri_boot to boot_context and
* init bsp with boot_context.
*/
(void)memcpy_s(&(vcpu_regs->gprs), sizeof(struct acrn_gp_regs),
(void)memcpy_s((void *)&(vcpu_regs->gprs), sizeof(struct acrn_gp_regs),
&(depri_boot_ctx->vcpu_regs.gprs), sizeof(struct acrn_gp_regs));
vcpu_regs->rip = depri_boot_ctx->vcpu_regs.rip;