Add "static" to please Sparse
authorBlue Swirl <blauwirbel@gmail.com>
Fri, 4 Dec 2009 20:44:44 +0000 (20:44 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 4 Dec 2009 20:44:44 +0000 (20:44 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/eeprom93xx.c
hw/fw_cfg.c
hw/ide/microdrive.c
hw/ne2000-isa.c
hw/ne2000.c
hw/pckbd.c
hw/realview.c
hw/twl92230.c
hw/vmware_vga.c
qerror.c

index 43244e7..30a3534 100644 (file)
@@ -107,7 +107,7 @@ static void put_unused(QEMUFile *f, void *pv, size_t size)
     exit(0);
 }
 
-const VMStateInfo vmstate_hack_uint16_from_uint8 = {
+static const VMStateInfo vmstate_hack_uint16_from_uint8 = {
     .name = "uint16_from_uint8",
     .get  = get_uint16_from_uint8,
     .put  = put_unused,
index b79d58f..b25afff 100644 (file)
@@ -182,7 +182,7 @@ static void put_unused(QEMUFile *f, void *pv, size_t size)
     fprintf(stderr, "This functions shouldn't be called.\n");
 }
 
-const VMStateInfo vmstate_hack_uint32_as_uint16 = {
+static const VMStateInfo vmstate_hack_uint32_as_uint16 = {
     .name = "int32_as_uint16",
     .get  = get_uint32_as_uint16,
     .put  = put_unused,
index 37087ca..bfdb8c8 100644 (file)
@@ -300,7 +300,7 @@ static void md_common_write(void *opaque, uint32_t at, uint16_t value)
     }
 }
 
-const VMStateDescription vmstate_microdrive = {
+static const VMStateDescription vmstate_microdrive = {
     .name = "microdrive",
     .version_id = 3,
     .minimum_version_id = 0,
index d2e9283..03a5a1f 100644 (file)
@@ -50,7 +50,7 @@ static NetClientInfo net_ne2000_isa_info = {
     .cleanup = isa_ne2000_cleanup,
 };
 
-const VMStateDescription vmstate_isa_ne2000 = {
+static const VMStateDescription vmstate_isa_ne2000 = {
     .name = "ne2000",
     .version_id = 2,
     .minimum_version_id = 0,
index e0655ff..d1416cf 100644 (file)
@@ -663,7 +663,7 @@ const VMStateDescription vmstate_ne2000 = {
     }
 };
 
-const VMStateDescription vmstate_pci_ne2000 = {
+static const VMStateDescription vmstate_pci_ne2000 = {
     .name = "ne2000",
     .version_id = 3,
     .minimum_version_id = 3,
index 7e0d68d..7998aa6 100644 (file)
@@ -414,7 +414,7 @@ typedef struct ISAKBDState {
     KBDState  kbd;
 } ISAKBDState;
 
-const VMStateDescription vmstate_kbd_isa = {
+static const VMStateDescription vmstate_kbd_isa = {
     .name = "pckbd",
     .version_id = 3,
     .minimum_version_id = 3,
index 3322c4f..fd2d6be 100644 (file)
@@ -121,7 +121,7 @@ enum realview_board_type {
     BOARD_PBX_A9,
 };
 
-int realview_board_id[] = {
+static const int realview_board_id[] = {
     0x33b,
     0x33b,
     0x769,
index b1b2ac9..e61f17f 100644 (file)
@@ -756,7 +756,7 @@ static void put_int32_as_uint16(QEMUFile *f, void *pv, size_t size)
     qemu_put_be16(f, *v);
 }
 
-const VMStateInfo vmstate_hack_int32_as_uint16 = {
+static const VMStateInfo vmstate_hack_int32_as_uint16 = {
     .name = "int32_as_uint16",
     .get  = get_int32_as_uint16,
     .put  = put_int32_as_uint16,
index 24ea620..240731a 100644 (file)
@@ -1063,7 +1063,7 @@ static int vmsvga_post_load(void *opaque, int version_id)
     return 0;
 }
 
-const VMStateDescription vmstate_vmware_vga_internal = {
+static const VMStateDescription vmstate_vmware_vga_internal = {
     .name = "vmware_vga_internal",
     .version_id = 0,
     .minimum_version_id = 0,
@@ -1090,7 +1090,7 @@ const VMStateDescription vmstate_vmware_vga_internal = {
     }
 };
 
-const VMStateDescription vmstate_vmware_vga = {
+static const VMStateDescription vmstate_vmware_vga = {
     .name = "vmware_vga",
     .version_id = 0,
     .minimum_version_id = 0,
index 6560996..d00e534 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -39,7 +39,7 @@ static const QType qerror_type = {
  *
  * "running out of foo: %(foo)%%"
  */
-const QErrorStringTable qerror_table[] = {
+static const QErrorStringTable qerror_table[] = {
     {
         .error_fmt   = QERR_COMMAND_NOT_FOUND,
         .desc        = "The command %(name) has not been found",