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:
Mingqiang Chi
2018-08-16 16:10:46 +08:00
committed by lijinxia
parent b37008d74e
commit 40fd8893b4
7 changed files with 32 additions and 23 deletions

View File

@@ -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)

View File

@@ -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)