]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
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 43244e771eb25203276d5547487894c4e145b4ed..30a35340ad0bab175f3f617d067f4e8833afbacd 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 b79d58f694acc762f82fd57c72df636be12b007a..b25affff87ec0c3b059393f17527b7e7b100c3ef 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 37087ca0cad6359bb2e0fae2d2dbb4c94a616bf9..bfdb8c8b05937169432ea3adeff5e8d18d82fbac 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 d2e9283be35721800e503c8e6633eff936ee9100..03a5a1fbd5656078e9abeaa47b66d22bddbab441 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 e0655ffa4c2e80db3e220e139b0ee48b4d14df8b..d1416cfb7f88e4f3f9fcaf8d6435c209823fdb84 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 7e0d68df2b16de5437131e7dc9fcb26edbc98e33..7998aa66b544f551ee565853c082ce1904b88820 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 3322c4fd5d99ebbe93265f3f96f7adb10ee6a1ca..fd2d6be7151927351d94ea90387b6f7535e601e8 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 b1b2ac9ce5eb129d092e937a9f6cbe3052e21d55..e61f17f0adeaa68bf73465d7abfea91ca852a1d0 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 24ea6205b07f4b4483da918496c4e537ceb92922..240731a1b2640583d97a2d5f436e397373560518 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 6560996c255d92d0ebe5c5bbdc23021c36dfcd30..d00e5347e1fdb87666c1c761ea581cf5c74e78dc 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",