qemu-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]