mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv:fixed several return value violations
-- change two timer callbacks to void type -- ignore the return value for add_timer -- add (void) before several functions(memset/memcpy/ vcpu_get_xxx) v1-->v2: ignore the return value for add_timer Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -219,7 +219,7 @@ uint64_t prepare_trampoline(void)
|
||||
pr_dbg("trampoline code: %llx size %x", dest_pa, size);
|
||||
|
||||
/* Copy segment for AP initialization code below 1MB */
|
||||
memcpy_s(HPA2HVA(dest_pa), (size_t)size, &_ld_trampoline_load,
|
||||
(void)memcpy_s(HPA2HVA(dest_pa), (size_t)size, &_ld_trampoline_load,
|
||||
(size_t)size);
|
||||
update_trampoline_code_refs(dest_pa);
|
||||
trampoline_start16_paddr = dest_pa;
|
||||
|
@@ -177,7 +177,7 @@ static void *parse_image_boot_params(struct vm *vm, char *cmdline)
|
||||
*/
|
||||
arg_end = strchr(arg, ' ');
|
||||
len = arg_end ? (uint32_t)(arg_end - arg) : strnlen_s(arg, MEM_2K);
|
||||
memset(arg, ' ', len);
|
||||
(void)memset(arg, ' ', len);
|
||||
|
||||
return (void *)boot_params;
|
||||
|
||||
@@ -297,7 +297,7 @@ int init_vm_boot_info(struct vm *vm)
|
||||
* kernel cmdline
|
||||
*/
|
||||
if (boot_params_addr != NULL) {
|
||||
memset(buf, 0U, sizeof(buf));
|
||||
(void)memset(buf, 0U, sizeof(buf));
|
||||
snprintf(buf, MAX_BOOT_PARAMS_LEN, "%s0x%X ",
|
||||
boot_params_arg,
|
||||
HVA2GPA(vm, (uint64_t)boot_params_addr));
|
||||
|
Reference in New Issue
Block a user