Received: from eggs.gnu.org ([2001:4830:134:3::10]:47830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRZho-0004RT-MT for qemu-devel@nongnu.org; Tue, 27 Nov 2018 04:30:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRZhn-0006DS-TR for qemu-devel@nongnu.org; Tue, 27 Nov 2018 04:30:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45414) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gRZhn-0006D6-OO for qemu-devel@nongnu.org; Tue, 27 Nov 2018 04:30:55 -0500 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 27 Nov 2018 13:27:50 +0400 Message-Id: <20181127092801.21777-18-marcandre.lureau@redhat.com> In-Reply-To: <20181127092801.21777-1-marcandre.lureau@redhat.com> References: <20181127092801.21777-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH for-3.2 v4 17/28] hw: remove SET_MACHINE_COMPAT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: imammedo@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Eduardo Habkost , Marcel Apfelbaum Now replaced with more generic SET_COMPAT(). Signed-off-by: Marc-Andr=C3=A9 Lureau --- include/hw/boards.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/hw/boards.h b/include/hw/boards.h index 28c2b0af41..f743d9d4a4 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -287,20 +287,4 @@ struct MachineState { } \ type_init(machine_initfn##_register_types) =20 -#define SET_MACHINE_COMPAT(m, COMPAT) \ - do { \ - int i; \ - static GlobalProperty props[] =3D { \ - COMPAT \ - { /* end of list */ } \ - }; \ - if (!m->compat_props) { \ - m->compat_props =3D g_array_new(false, false, sizeof(void *)= ); \ - } \ - for (i =3D 0; props[i].driver !=3D NULL; i++) { \ - GlobalProperty *prop =3D &props[i]; \ - g_array_append_val(m->compat_props, prop); \ - } \ - } while (0) - #endif --=20 2.20.0.rc1