Received: from eggs.gnu.org ([2001:4830:134:3::10]:54263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzOLl-0002Z7-5s for qemu-devel@nongnu.org; Wed, 26 Oct 2016 09:34:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzOLg-00011Q-NL for qemu-devel@nongnu.org; Wed, 26 Oct 2016 09:34:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54632) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzOLg-00010W-FO for qemu-devel@nongnu.org; Wed, 26 Oct 2016 09:34:32 -0400 Date: Wed, 26 Oct 2016 15:34:29 +0200 From: Igor Mammedov Message-ID: <20161026153429.2559b0d6@nial.brq.redhat.com> In-Reply-To: <1476985679-4456-2-git-send-email-ehabkost@redhat.com> References: <1476985679-4456-1-git-send-email-ehabkost@redhat.com> <1476985679-4456-2-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Markus Armbruster , Andreas =?UTF-8?B?RsOkcmJlcg==?= On Thu, 20 Oct 2016 15:47:54 -0200 Eduardo Habkost wrote: > Replace direct assignment of DeviceClass::props with a > device_class_set_props() function. The new function will handle > registration of class properties, later. > > Except for manual conversion of target-ppc/translate_init.c, the > existing code was converted using the following Coccinelle patch: Patch doesn't apply to current master anymore with multiple conflicts, it needs to be regenerated. > @@ > identifier DC; > expression PROPS; > typedef DeviceClass; > @@ > DeviceClass *DC; > ... > -DC->props = PROPS; > +device_class_set_props(DC, PROPS); > > Signed-off-by: Eduardo Habkost