提交 d05ac8fa 编写于 作者: B Blue Swirl

Add "static" to please Sparse

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 407f879a
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -121,7 +121,7 @@ enum realview_board_type {
BOARD_PBX_A9,
};
int realview_board_id[] = {
static const int realview_board_id[] = {
0x33b,
0x33b,
0x769,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册