Patchwork hw: Add missing 'static' attribute for QEMUMachine

login
register
mail settings
Submitter Stefan Weil
Date Oct. 3, 2012, 9:19 a.m.
Message ID <1349255979-5404-1-git-send-email-sw@weilnetz.de>
Download mbox | patch
Permalink /patch/188737/
State Accepted
Headers show

Comments

Stefan Weil - Oct. 3, 2012, 9:19 a.m.
It was missing for leon3 and mips_fulong2e.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 hw/leon3.c              |    2 +-
 hw/mips/mips_fulong2e.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Andreas Färber - Oct. 3, 2012, 1:37 p.m.
Am 03.10.2012 11:19, schrieb Stefan Weil:
> It was missing for leon3 and mips_fulong2e.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>

Reviewed-by: Andreas Färber <afaerber@suse.de>

/-F
Stefan Hajnoczi - Oct. 5, 2012, 1:23 p.m.
On Wed, Oct 03, 2012 at 11:19:39AM +0200, Stefan Weil wrote:
> It was missing for leon3 and mips_fulong2e.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  hw/leon3.c              |    2 +-
>  hw/mips/mips_fulong2e.c |    2 +-

This file doesn't exist in my tree (based on qemu.git/master
a14c74928ba1fdaada515717f4d3c3fa3275d6f7).  I have modified it to
hw/mips_fulong2e.c.

>  2 files changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan

Patch

diff --git a/hw/leon3.c b/hw/leon3.c
index 878d3aa..7a9729d 100644
--- a/hw/leon3.c
+++ b/hw/leon3.c
@@ -210,7 +210,7 @@  static void leon3_generic_hw_init(ram_addr_t  ram_size,
     }
 }
 
-QEMUMachine leon3_generic_machine = {
+static QEMUMachine leon3_generic_machine = {
     .name     = "leon3_generic",
     .desc     = "Leon-3 generic",
     .init     = leon3_generic_hw_init,
diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c
index 38e4b86..d4a8672 100644
--- a/hw/mips/mips_fulong2e.c
+++ b/hw/mips/mips_fulong2e.c
@@ -392,7 +392,7 @@  static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device,
     network_init();
 }
 
-QEMUMachine mips_fulong2e_machine = {
+static QEMUMachine mips_fulong2e_machine = {
     .name = "fulong2e",
     .desc = "Fulong 2e mini pc",
     .init = mips_fulong2e_init,