Received: from eggs.gnu.org ([2001:4830:134:3::10]:57623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdKC2-0007pT-Kl for qemu-devel@nongnu.org; Sat, 19 Sep 2015 11:36:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdKC0-0005yu-Mc for qemu-devel@nongnu.org; Sat, 19 Sep 2015 11:36:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:42763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdKC0-0005ye-Gn for qemu-devel@nongnu.org; Sat, 19 Sep 2015 11:36:48 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 19 Sep 2015 17:36:39 +0200 Message-Id: <1442677004-4482-3-git-send-email-afaerber@suse.de> In-Reply-To: <1442677004-4482-1-git-send-email-afaerber@suse.de> References: <1442677004-4482-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 2/6] hw/s390x/css: Use type_init() instead of machine_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck , Christian Borntraeger , Richard Henderson , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Alexander Graf Here, machine_init() is being misused to initialize global variables. Being all local, it's safe to use the slightly earlier type_init(). This prepares for dropping machine_init(). Signed-off-by: Andreas F=C3=A4rber --- hw/s390x/css.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/css.c b/hw/s390x/css.c index c033612..d164fa8 100644 --- a/hw/s390x/css.c +++ b/hw/s390x/css.c @@ -1509,7 +1509,7 @@ static void css_init(void) channel_subsys->chnmon_active =3D false; QTAILQ_INIT(&channel_subsys->io_adapters); } -machine_init(css_init); +type_init(css_init) =20 void css_reset_sch(SubchDev *sch) { --=20 2.1.4