mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 16:15:00 +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:
@@ -32,7 +32,7 @@ char console_getc(void)
|
||||
return uart16550_getc();
|
||||
}
|
||||
|
||||
static int console_timer_callback(__unused void *data)
|
||||
static void console_timer_callback(__unused void *data)
|
||||
{
|
||||
struct vuart *vu;
|
||||
|
||||
@@ -46,7 +46,6 @@ static int console_timer_callback(__unused void *data)
|
||||
} else {
|
||||
shell_kick();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void console_setup_timer(void)
|
||||
|
||||
@@ -813,18 +813,19 @@ static int shell_show_vioapic_info(int argc, char **argv)
|
||||
|
||||
static int shell_show_ioapic_info(__unused int argc, __unused char **argv)
|
||||
{
|
||||
int err = 0;
|
||||
char *temp_str = alloc_pages(2U);
|
||||
|
||||
if (temp_str == NULL) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
get_ioapic_info(temp_str, 2 * CPU_PAGE_SIZE);
|
||||
err = get_ioapic_info(temp_str, 2 * CPU_PAGE_SIZE);
|
||||
shell_puts(temp_str);
|
||||
|
||||
free(temp_str);
|
||||
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static int shell_show_vmexit_profile(__unused int argc, __unused char **argv)
|
||||
|
||||
Reference in New Issue
Block a user