diff mbox series

[PULL,05/28] hw: remove SET_MACHINE_COMPAT

Message ID 20190104173042.32714-6-marcandre.lureau@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/28] hw: apply accel compat properties without touching globals | expand

Commit Message

Marc-André Lureau Jan. 4, 2019, 5:30 p.m. UTC
No longer needed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
---
 include/hw/boards.h | 12 ------------
 1 file changed, 12 deletions(-)
diff mbox series

Patch

diff --git a/include/hw/boards.h b/include/hw/boards.h
index f14c38bb63..0566742412 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -288,16 +288,4 @@  struct MachineState {
     } \
     type_init(machine_initfn##_register_types)
 
-#define SET_MACHINE_COMPAT(m, compat) \
-    do {                              \
-        int i;                        \
-        if (!m->compat_props) { \
-            m->compat_props = g_array_new(false, false, sizeof(void *)); \
-        } \
-        for (i = 0; i < G_N_ELEMENTS(compat); i++) {          \
-            GlobalProperty *prop = &compat[i];          \
-            g_array_append_val(m->compat_props, prop); \
-        }                                              \
-    } while (0)
-
 #endif