[Qemu-devel] [PATCH] Remove old global variable smp_cpus

Stefan Weil posted 1 patch 4 years, 9 months ago
Test FreeBSD passed
Test docker-clang@ubuntu passed
Test asan passed
Test docker-mingw@fedora passed
Test s390x passed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190712131927.15091-1-sw@weilnetz.de
include/sysemu/sysemu.h | 1 -
1 file changed, 1 deletion(-)
[Qemu-devel] [PATCH] Remove old global variable smp_cpus
Posted by Stefan Weil 4 years, 9 months ago
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 include/sysemu/sysemu.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 984c439ac9..9b849cb770 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -103,7 +103,6 @@ extern const char *keyboard_layout;
 extern int win2k_install_hack;
 extern int alt_grab;
 extern int ctrl_grab;
-extern int smp_cpus;
 extern unsigned int max_cpus;
 extern int cursor_hide;
 extern int graphic_rotate;
-- 
2.20.1


Re: [Qemu-devel] [Qemu-trivial] [PATCH] Remove old global variable smp_cpus
Posted by Laurent Vivier 4 years, 9 months ago
Le 12/07/2019 à 15:19, Stefan Weil a écrit :
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  include/sysemu/sysemu.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
> index 984c439ac9..9b849cb770 100644
> --- a/include/sysemu/sysemu.h
> +++ b/include/sysemu/sysemu.h
> @@ -103,7 +103,6 @@ extern const char *keyboard_layout;
>  extern int win2k_install_hack;
>  extern int alt_grab;
>  extern int ctrl_grab;
> -extern int smp_cpus;
>  extern unsigned int max_cpus;
>  extern int cursor_hide;
>  extern int graphic_rotate;
> 

Fixes: a5e0b331193a ("vl.c: Replace smp global variables with smp
machine properties")

I thin you can also remove max_cpus.

Thanks,
Laurent