Received: from eggs.gnu.org ([2001:4830:134:3::10]:41579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzPin-0001tV-Uv for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:02:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzPij-000569-TA for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:02:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55526) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzPij-00055o-NT for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:02:25 -0400 Date: Wed, 26 Oct 2016 17:02:22 +0200 From: Igor Mammedov Message-ID: <20161026170222.77ca8297@nial.brq.redhat.com> In-Reply-To: <1476985679-4456-4-git-send-email-ehabkost@redhat.com> References: <1476985679-4456-1-git-send-email-ehabkost@redhat.com> <1476985679-4456-4-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 3/6] qdev: Register static properties as class properties 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:56 -0200 Eduardo Habkost wrote: > Instead of registering qdev static properties on instance_init, > register them as class properties, at qdev_class_set_props(). > > qdev_property_add_legacy() was replaced by an equivalent > qdev_class_property_add_legacy() function. > qdev_property_add_static(), on the other hand, can't be > eliminated yet because it is used by arm_cpu_post_init(). > > Signed-off-by: Eduardo Habkost on make check, I'm getting after [1/1 has been regenerated using script from commit message] hw/core/qdev.c:1063: device_class_set_props: Assertion `!dc->props' failed. /me using ./configure without options on RHEL7 > --- > hw/core/qdev.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++---------- > 1 file changed, 58 insertions(+), 11 deletions(-) > > diff --git a/hw/core/qdev.c b/hw/core/qdev.c > index 85952e8..f7d9030 100644 > --- a/hw/core/qdev.c > +++ b/hw/core/qdev.c > @@ -739,12 +739,12 @@ static void qdev_get_legacy_property(Object *obj, Visitor *v, > } > > /** > - * qdev_property_add_legacy: > - * @dev: Device to add the property to. > + * qdev_class_property_add_legacy: > + * @oc: Device to add the property to. one more thing to fix: s/Device/object class/