Skip to contentSkip to conversation

hw: Add missing 'static' attribute for QEMUMachine

PATCH Applied Stefan Weil 3 participants 3 messages Oct 3, 2012 – Oct 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw: Add missing 'static' attribute for QEMUMachine

It was missing for leon3 and mips_fulong2e.

---
 hw/leon3.c              |    2 +-
 hw/mips/mips_fulong2e.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
hw/leon3.c +1 -1
index 878d3aa..7a9729d 100644
@@ -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,
hw/mips/mips_fulong2e.c +1 -1
index 38e4b86..d4a8672 100644
@@ -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,
Signature · 1 line
1.7.10
#2 lore raw
In reply to Stefan Weil
Quoted 6 lines · Stefan Weil

It was missing for leon3 and mips_fulong2e.

---
 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.

Quoted 1 line
 2 files changed, 2 insertions(+), 2 deletions(-)

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

Stefan