cpu: Remove parameter of list_cpus()
PATCH 1/1 cpu: Remove parameter of list_cpus()
The "optarg" parameter is completely unused, so let's drop it.
Signed-off-by Thomas Huth <[email protected]>
--- include/exec/cpu-common.h | 2 +- cpu.c | 2 +- softmmu/vl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
include/exec/cpu-common.h +1 -1
@@ -165,6 +165,6 @@ int cpu_memory_rw_debug(CPUState *cpu, vaddr addr,/* vl.c */ extern int singlestep; -void list_cpus (const char *optarg); +void list_cpus (void );#endif /* CPU_COMMON_H */
cpu.c +1 -1
@@ -284,7 +284,7 @@ const char *parse_cpu_option(const char *cpu_option)return cpu_type; } -void list_cpus (const char *optarg) +void list_cpus (void ) {/* XXX: implement xxx_cpu_list for targets that still miss it */ #if defined(cpu_list)
softmmu/vl.c +1 -1
@@ -2432,7 +2432,7 @@ static void qemu_process_help_options(void)* to say '-cpu help -machine something'. */ if (cpu_option &&is_help_option (cpu_option)) { -list_cpus (cpu_option); +list_cpus ();exit (0 ); }
Signature · 1 line
2.31.1
Quoted 3 lines · Thomas Huth
The "optarg" parameter is completely unused, so let's drop it.
Signed-off-by Thomas Huth <[email protected]>
Reviewed-by Alex Bennée <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Quoted 8 lines · Thomas Huth
The "optarg" parameter is completely unused, so let's drop it.
Signed-off-by Thomas Huth <[email protected]>--- include/exec/cpu-common.h | 2 +- cpu.c | 2 +- softmmu/vl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>