]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
fw_cfg: Make qemu_extra_params_fw locally
authorLi Qiang <liq3ea@gmail.com>
Wed, 21 Nov 2018 05:10:26 +0000 (21:10 -0800)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 4 Jan 2019 14:30:52 +0000 (15:30 +0100)
qemu_extra_params_fw[] has external linkage, but is used
only in fw_cfg_bootsplash(), it makes sense to make it
locally.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <1542777026-2788-4-git-send-email-liq3ea@gmail.com>
[PMD: Removed qemu_extra_params_fw declaration in vl.c]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/nvram/fw_cfg.c
include/sysemu/sysemu.h
vl.c

index cba58344f5a1dac8949ea0ba6ec61adf4c5730dd..de58c7be463833e8a00671ac8283a3103671d5c6 100644 (file)
@@ -119,6 +119,7 @@ static void fw_cfg_bootsplash(FWCfgState *s)
 {
     const char *boot_splash_filename = NULL;
     const char *boot_splash_time = NULL;
+    uint8_t qemu_extra_params_fw[2];
     char *filename, *file_data;
     gsize file_size;
     int file_type;
index e0d15da937054fa34dacb33d62428dfc0319be73..85877b7e43bb93f524c7f6018dd63b4d6346c7a8 100644 (file)
@@ -116,7 +116,6 @@ extern uint8_t *boot_splash_filedata;
 extern size_t boot_splash_filedata_size;
 extern bool enable_mlock;
 extern bool enable_cpu_pm;
-extern uint8_t qemu_extra_params_fw[2];
 extern QEMUClockType rtc_clock;
 extern const char *mem_path;
 extern int mem_prealloc;
diff --git a/vl.c b/vl.c
index efa4ff9da50afa4e1b9bbf992bf98a1f5b2d6e6b..0db5ad02465757ec305ae6b9004865f19d93f772 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -191,7 +191,6 @@ int boot_menu;
 bool boot_strict;
 uint8_t *boot_splash_filedata;
 size_t boot_splash_filedata_size;
-uint8_t qemu_extra_params_fw[2];
 bool wakeup_suspend_enabled;
 
 int icount_align_option;