diff mbox series

[v7,05/28] hw: remove SET_MACHINE_COMPAT

Message ID 20181221090410.27250-6-marcandre.lureau@redhat.com
State New
Headers show
Series Generalize machine compatibility properties | expand

Commit Message

Marc-André Lureau Dec. 21, 2018, 9:03 a.m. UTC
No longer needed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 include/hw/boards.h | 12 ------------
 1 file changed, 12 deletions(-)

Comments

Cornelia Huck Dec. 21, 2018, 12:44 p.m. UTC | #1
On Fri, 21 Dec 2018 13:03:47 +0400
Marc-André Lureau <marcandre.lureau@redhat.com> wrote:

> No longer needed.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  include/hw/boards.h | 12 ------------
>  1 file changed, 12 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Igor Mammedov Dec. 21, 2018, 2:22 p.m. UTC | #2
On Fri, 21 Dec 2018 13:03:47 +0400
Marc-André Lureau <marcandre.lureau@redhat.com> wrote:

> No longer needed.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Reviewed-by: Igor Mammedov <imammedo@redhat.com>

> ---
>  include/hw/boards.h | 12 ------------
>  1 file changed, 12 deletions(-)
> 
> diff --git a/include/hw/boards.h b/include/hw/boards.h
> index f02d5a1bbd..f743d9d4a4 100644
> --- a/include/hw/boards.h
> +++ b/include/hw/boards.h
> @@ -287,16 +287,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
diff mbox series

Patch

diff --git a/include/hw/boards.h b/include/hw/boards.h
index f02d5a1bbd..f743d9d4a4 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -287,16 +287,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