Skip to contentSkip to conversation

pc: Add missing 'static' attribute

PATCH Applied Stefan Weil 2 participants 2 messages Sep 19, 2014 – Sep 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc: Add missing 'static' attribute

This fixes a warning from smatch (static code analysis).

---
 hw/i386/pc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/pc.c +1 -1
index 2c2e9dc..82a7daa 100644
@@ -75,7 +75,7 @@
 /* Leave a chunk of memory at the top of RAM for the BIOS ACPI tables
  * (128K) and other BIOS datastructures (less than 4K reported to be used at
  * the moment, 32K should be enough for a while).  */
-unsigned acpi_data_size = 0x20000 + 0x8000;
+static unsigned acpi_data_size = 0x20000 + 0x8000;
 void pc_set_legacy_acpi_data_size(void)
 {
     acpi_data_size = 0x10000;
Signature · 1 line
1.7.10.4