Skip to contentSkip to conversation

cpus: Remove unused smp_cores/smp_threads declarations

PATCH Applied Philippe Mathieu-Daudé 2 participants 2 messages Oct 9, 2023 – Oct 10, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpus: Remove unused smp_cores/smp_threads declarations

Commit a5e0b33119 ("vl.c: Replace smp global variables with smp machine properties") removed the last uses of the smp_cores / smp_threads variables but forgot to remove their declarations. Do it now.

---
 include/sysemu/cpus.h | 7 -------
 1 file changed, 7 deletions(-)
include/sysemu/cpus.h +0 -7
index 0535a4c68a..b4a566cfe7 100644
@@ -50,11 +50,4 @@ void cpu_synchronize_all_post_reset(void);
 void cpu_synchronize_all_post_init(void);
 void cpu_synchronize_all_pre_loadvm(void);
 
-#ifndef CONFIG_USER_ONLY
-/* vl.c */
-/* *-user doesn't have configurable SMP topology */
-extern int smp_cores;
-extern int smp_threads;
-#endif
-
 #endif
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1 Applied
#1 lore raw

09.10.2023 12:09, Philippe Mathieu-Daudé:

Quoted 4 lines

Commit a5e0b33119 ("vl.c: Replace smp global variables with smp machine properties") removed the last uses of the smp_cores / smp_threads variables but forgot to remove their declarations. Do it now.

Applied to my trivial-patches branch.

/mjt

Quoted 21 lines
---
  include/sysemu/cpus.h | 7 -------
  1 file changed, 7 deletions(-)
include/sysemu/cpus.h +0 -7
index 0535a4c68a..b4a566cfe7 100644
@@ -50,11 +50,4 @@ void cpu_synchronize_all_post_reset(void);
  void cpu_synchronize_all_post_init(void);
  void cpu_synchronize_all_pre_loadvm(void);
 
-#ifndef CONFIG_USER_ONLY
-/* vl.c */
-/* *-user doesn't have configurable SMP topology */
-extern int smp_cores;
-extern int smp_threads;
-#endif
-
  #endif