Add "static" to please Sparse
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
407f879abb
commit
d05ac8faf5
@ -107,7 +107,7 @@ static void put_unused(QEMUFile *f, void *pv, size_t size)
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const VMStateInfo vmstate_hack_uint16_from_uint8 = {
|
static const VMStateInfo vmstate_hack_uint16_from_uint8 = {
|
||||||
.name = "uint16_from_uint8",
|
.name = "uint16_from_uint8",
|
||||||
.get = get_uint16_from_uint8,
|
.get = get_uint16_from_uint8,
|
||||||
.put = put_unused,
|
.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");
|
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",
|
.name = "int32_as_uint16",
|
||||||
.get = get_uint32_as_uint16,
|
.get = get_uint32_as_uint16,
|
||||||
.put = put_unused,
|
.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",
|
.name = "microdrive",
|
||||||
.version_id = 3,
|
.version_id = 3,
|
||||||
.minimum_version_id = 0,
|
.minimum_version_id = 0,
|
||||||
|
@ -50,7 +50,7 @@ static NetClientInfo net_ne2000_isa_info = {
|
|||||||
.cleanup = isa_ne2000_cleanup,
|
.cleanup = isa_ne2000_cleanup,
|
||||||
};
|
};
|
||||||
|
|
||||||
const VMStateDescription vmstate_isa_ne2000 = {
|
static const VMStateDescription vmstate_isa_ne2000 = {
|
||||||
.name = "ne2000",
|
.name = "ne2000",
|
||||||
.version_id = 2,
|
.version_id = 2,
|
||||||
.minimum_version_id = 0,
|
.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",
|
.name = "ne2000",
|
||||||
.version_id = 3,
|
.version_id = 3,
|
||||||
.minimum_version_id = 3,
|
.minimum_version_id = 3,
|
||||||
|
@ -414,7 +414,7 @@ typedef struct ISAKBDState {
|
|||||||
KBDState kbd;
|
KBDState kbd;
|
||||||
} ISAKBDState;
|
} ISAKBDState;
|
||||||
|
|
||||||
const VMStateDescription vmstate_kbd_isa = {
|
static const VMStateDescription vmstate_kbd_isa = {
|
||||||
.name = "pckbd",
|
.name = "pckbd",
|
||||||
.version_id = 3,
|
.version_id = 3,
|
||||||
.minimum_version_id = 3,
|
.minimum_version_id = 3,
|
||||||
|
@ -121,7 +121,7 @@ enum realview_board_type {
|
|||||||
BOARD_PBX_A9,
|
BOARD_PBX_A9,
|
||||||
};
|
};
|
||||||
|
|
||||||
int realview_board_id[] = {
|
static const int realview_board_id[] = {
|
||||||
0x33b,
|
0x33b,
|
||||||
0x33b,
|
0x33b,
|
||||||
0x769,
|
0x769,
|
||||||
|
@ -756,7 +756,7 @@ static void put_int32_as_uint16(QEMUFile *f, void *pv, size_t size)
|
|||||||
qemu_put_be16(f, *v);
|
qemu_put_be16(f, *v);
|
||||||
}
|
}
|
||||||
|
|
||||||
const VMStateInfo vmstate_hack_int32_as_uint16 = {
|
static const VMStateInfo vmstate_hack_int32_as_uint16 = {
|
||||||
.name = "int32_as_uint16",
|
.name = "int32_as_uint16",
|
||||||
.get = get_int32_as_uint16,
|
.get = get_int32_as_uint16,
|
||||||
.put = put_int32_as_uint16,
|
.put = put_int32_as_uint16,
|
||||||
|
@ -1063,7 +1063,7 @@ static int vmsvga_post_load(void *opaque, int version_id)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const VMStateDescription vmstate_vmware_vga_internal = {
|
static const VMStateDescription vmstate_vmware_vga_internal = {
|
||||||
.name = "vmware_vga_internal",
|
.name = "vmware_vga_internal",
|
||||||
.version_id = 0,
|
.version_id = 0,
|
||||||
.minimum_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",
|
.name = "vmware_vga",
|
||||||
.version_id = 0,
|
.version_id = 0,
|
||||||
.minimum_version_id = 0,
|
.minimum_version_id = 0,
|
||||||
|
2
qerror.c
2
qerror.c
@ -39,7 +39,7 @@ static const QType qerror_type = {
|
|||||||
*
|
*
|
||||||
* "running out of foo: %(foo)%%"
|
* "running out of foo: %(foo)%%"
|
||||||
*/
|
*/
|
||||||
const QErrorStringTable qerror_table[] = {
|
static const QErrorStringTable qerror_table[] = {
|
||||||
{
|
{
|
||||||
.error_fmt = QERR_COMMAND_NOT_FOUND,
|
.error_fmt = QERR_COMMAND_NOT_FOUND,
|
||||||
.desc = "The command %(name) has not been found",
|
.desc = "The command %(name) has not been found",
|
||||||
|
Loading…
Reference in New Issue
Block a user