[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/6] pc: Use type_register_static() for machine type
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH 6/6] pc: Use type_register_static() for machine types |
Date: |
Sat, 19 Sep 2015 17:36:43 +0200 |
The TypeInfos are being generated statically and the name is a constant.
Signed-off-by: Andreas Färber <address@hidden>
---
include/hw/i386/pc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index b828bb9..0f60170 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -715,7 +715,7 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
}; \
static void pc_machine_init_##suffix(void) \
{ \
- type_register(&pc_machine_type_##suffix); \
+ type_register_static(&pc_machine_type_##suffix); \
} \
type_init(pc_machine_init_##suffix)
--
2.1.4
- [Qemu-devel] [PATCH 0/6] machine: Deprecate machine_init(), Andreas Färber, 2015/09/19
- [Qemu-devel] [PATCH 3/6] Introduce config_init() for QemuOpts, Andreas Färber, 2015/09/19
- [Qemu-devel] [PATCH 4/6] Drop machine_init() and MODULE_INIT_MACHINE, Andreas Färber, 2015/09/19
- [Qemu-devel] [PATCH 2/6] hw/s390x/css: Use type_init() instead of machine_init(), Andreas Färber, 2015/09/19
- [Qemu-devel] [PATCH 6/6] pc: Use type_register_static() for machine types,
Andreas Färber <=
- [Qemu-devel] [PATCH 1/6] Use type_init() for all machine QOM types, Andreas Färber, 2015/09/19
- [Qemu-devel] [PATCH 5/6] exynos4: Further QOM'ify machines, Andreas Färber, 2015/09/19
- Re: [Qemu-devel] [PATCH 0/6] machine: Deprecate machine_init(), Eduardo Habkost, 2015/09/21