]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
cpu: Remove parameter of list_cpus()
authorThomas Huth <thuth@redhat.com>
Wed, 19 Apr 2023 12:48:31 +0000 (14:48 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 20 Apr 2023 09:25:32 +0000 (11:25 +0200)
The "optarg" parameter is completely unused, so let's drop it.

Message-Id: <20230419124831.678079-1-thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
cpu.c
include/exec/cpu-common.h
softmmu/vl.c

diff --git a/cpu.c b/cpu.c
index 849bac062cfaeba926525e4fb15a67b6e63475eb..9105c85404ce4eff0cdd9eebc30bf6fc5a931e65 100644 (file)
--- a/cpu.c
+++ b/cpu.c
@@ -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)
index 6feaa40ca7b094b8c05e9de10882a49589095486..565c2030c10cbfd1e3b69bcb2a196d8cbe9d9bd8 100644 (file)
@@ -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 */
index ea20b23e4c844f4d6d29f0b6939aa90be7edadca..5cb72a56fcea765df6a52ce8368f0f02f8e8ec62 100644 (file)
@@ -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);
     }