Skip to content

Commit 4e99afc

Browse files
shiqingglijinxia
authored andcommitted
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 <shiqing.gao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
1 parent fc2701d commit 4e99afc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hypervisor/arch/x86/cpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static uint16_t get_cpu_id_from_lapic_id(uint8_t lapic_id)
667667
/*
668668
* Start all secondary CPUs.
669669
*/
670-
void start_cpus()
670+
void start_cpus(void)
671671
{
672672
uint32_t timeout;
673673
uint16_t expected_up;
@@ -710,7 +710,7 @@ void start_cpus()
710710
}
711711
}
712712

713-
void stop_cpus()
713+
void stop_cpus(void)
714714
{
715715
uint16_t pcpu_id, expected_up;
716716
uint32_t timeout;

hypervisor/include/arch/x86/cpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ bool cpu_has_cap(uint32_t bit);
328328
void load_cpu_state_data(void);
329329
void bsp_boot_init(void);
330330
void cpu_secondary_init(void);
331-
void start_cpus();
332-
void stop_cpus();
331+
void start_cpus(void);
332+
void stop_cpus(void);
333333

334334
/* Read control register */
335335
#define CPU_CR_READ(cr, result_ptr) \

0 commit comments

Comments
 (0)