Received: from eggs.gnu.org ([2001:4830:134:3::10]:59023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzQbs-0005TN-3J for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:59:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzQbo-0000io-Q4 for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:59:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37016) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzQbo-0000iV-Jy for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:59:20 -0400 Date: Wed, 26 Oct 2016 13:59:17 -0200 From: Eduardo Habkost Message-ID: <20161026155917.GB5057@thinpad.lan.raisama.net> References: <1476985679-4456-1-git-send-email-ehabkost@redhat.com> <1476985679-4456-4-git-send-email-ehabkost@redhat.com> <20161026170222.77ca8297@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161026170222.77ca8297@nial.brq.redhat.com> 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: Igor Mammedov Cc: qemu-devel@nongnu.org, Markus Armbruster , Andreas =?iso-8859-1?Q?F=E4rber?= On Wed, Oct 26, 2016 at 05:02:22PM +0200, Igor Mammedov wrote: > 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. > This series depends on "tests: A few check-qom-proplist fixes" series. See cover letter for git pointer. When submitting a new version, I will include both in a single series. -- Eduardo