From 4e99afcc2f38e2877f29be008aee3aa2cd79a5e3 Mon Sep 17 00:00:00 2001 From: Shiqing Gao Date: Fri, 10 Aug 2018 13:46:20 +0800 Subject: [PATCH] hv: treewide: fix 'Empty parameter list to procedure/function' Use func(void) rather than func() for the function declaration and definition based on MISRAC requirement. Signed-off-by: Shiqing Gao Reviewed-by: Junjie Mao --- hypervisor/arch/x86/cpu.c | 4 ++-- hypervisor/include/arch/x86/cpu.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hypervisor/arch/x86/cpu.c b/hypervisor/arch/x86/cpu.c index 02cbaec5e..84a8fcf7f 100644 --- a/hypervisor/arch/x86/cpu.c +++ b/hypervisor/arch/x86/cpu.c @@ -667,7 +667,7 @@ static uint16_t get_cpu_id_from_lapic_id(uint8_t lapic_id) /* * Start all secondary CPUs. */ -void start_cpus() +void start_cpus(void) { uint32_t timeout; uint16_t expected_up; @@ -710,7 +710,7 @@ void start_cpus() } } -void stop_cpus() +void stop_cpus(void) { uint16_t pcpu_id, expected_up; uint32_t timeout; diff --git a/hypervisor/include/arch/x86/cpu.h b/hypervisor/include/arch/x86/cpu.h index e56f443d2..a29a7c59f 100644 --- a/hypervisor/include/arch/x86/cpu.h +++ b/hypervisor/include/arch/x86/cpu.h @@ -328,8 +328,8 @@ bool cpu_has_cap(uint32_t bit); void load_cpu_state_data(void); void bsp_boot_init(void); void cpu_secondary_init(void); -void start_cpus(); -void stop_cpus(); +void start_cpus(void); +void stop_cpus(void); /* Read control register */ #define CPU_CR_READ(cr, result_ptr) \