Received: from eggs.gnu.org ([2001:4830:134:3::10]:44843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bznrt-0002Cf-Qz for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:49:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bznrq-0000Ii-PR for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:49:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60228) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bznrq-0000Id-Jb for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:49:26 -0400 Date: Thu, 27 Oct 2016 14:49:23 -0200 From: Eduardo Habkost Message-ID: <20161027164923.GO5057@thinpad.lan.raisama.net> References: <1477499426-9550-1-git-send-email-ehabkost@redhat.com> <1477499426-9550-7-git-send-email-ehabkost@redhat.com> <20161027173445.4cae7fe3@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161027173445.4cae7fe3@nial.brq.redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 6/8] qom: object_class_property_iter_init() function 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?= , "Daniel P. Berrange" On Thu, Oct 27, 2016 at 05:34:45PM +0200, Igor Mammedov wrote: > On Wed, 26 Oct 2016 14:30:24 -0200 > Eduardo Habkost wrote: > > > The new function will allow us to iterate over class properties > > using the same logic we use for object properties. Unit test > > included. > with current master this patch doesn't apply: > > Applying: qom: object_class_property_iter_init() function > Context reduced to (2/2) to apply fragment at 1010 > Context reduced to (2/2) to apply fragment at 1019 > error: patch failed: qom/object.c:1017 > error: qom/object.c: patch does not apply > error: patch failed: tests/check-qom-proplist.c:524 > error: tests/check-qom-proplist.c: patch does not apply > Patch failed at 0001 qom: object_class_property_iter_init() function It works here: $ git rev-parse HEAD 5929d7e8a0e1f43333bc3528b50397ae8dd0fd6b $ grep -i 'message-id:' /tmp/apv3 Message-Id: <1477499426-9550-2-git-send-email-ehabkost@redhat.com> Message-Id: <1477499426-9550-3-git-send-email-ehabkost@redhat.com> Message-Id: <1477499426-9550-4-git-send-email-ehabkost@redhat.com> Message-Id: <1477499426-9550-5-git-send-email-ehabkost@redhat.com> Message-Id: <1477499426-9550-6-git-send-email-ehabkost@redhat.com> Message-Id: <1477499426-9550-7-git-send-email-ehabkost@redhat.com> Message-Id: <1477499426-9550-8-git-send-email-ehabkost@redhat.com> Message-Id: <1477499426-9550-9-git-send-email-ehabkost@redhat.com> $ git am /tmp/apv3 Applying: tests: check-qom-proplist: Remove duplicate "bv" property Applying: tests: check-qom-proplist: Use &error_abort to catch errors Applying: qdev: device_class_set_props() function Applying: qdev: Extract property-default code to qdev_property_set_to_default() Applying: qdev: Register static properties as class properties Applying: qom: object_class_property_iter_init() function Applying: qmp: Support abstract classes on device-list-properties Applying: qdev: Warning about using object_class_property_add() in new code $ -- Eduardo