Received: from eggs.gnu.org ([2001:4830:134:3::10]:47466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzRWe-0004Im-Dt for qemu-devel@nongnu.org; Wed, 26 Oct 2016 12:58:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzRWd-0001wV-FI for qemu-devel@nongnu.org; Wed, 26 Oct 2016 12:58:04 -0400 Date: Wed, 26 Oct 2016 14:57:53 -0200 From: Eduardo Habkost Message-ID: <20161026165753.GC5057@thinpad.lan.raisama.net> References: <1477499426-9550-1-git-send-email-ehabkost@redhat.com> <1477499426-9550-9-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v3 8/8] qdev: Warning about using object_class_property_add() in new code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Markus Armbruster , Andreas =?iso-8859-1?Q?F=E4rber?= , "Daniel P. Berrange" , Igor Mammedov , qemu-arm On Wed, Oct 26, 2016 at 05:48:03PM +0100, Peter Maydell wrote: > On 26 October 2016 at 17:30, Eduardo Habkost wrote: > > The only remaining user of object_class_property_add() is > > arm_cpu_post_init(), but removing it may take some work. While we > > don't change it, warn people to not use the function in new code. > > This is about the third time I've seen this commit > message go past, but: > > git grep object_class_property_add target-arm => no hits Erm. I meant qdev_property_add_static(). Sorry. target-arm/cpu.c: qdev_property_add_static(DEVICE(obj), &arm_cpu_reset_cbar_property, target-arm/cpu.c: qdev_property_add_static(DEVICE(obj), &arm_cpu_reset_hivecs_property, target-arm/cpu.c: qdev_property_add_static(DEVICE(obj), &arm_cpu_rvbar_property, target-arm/cpu.c: qdev_property_add_static(DEVICE(obj), &arm_cpu_has_el3_property, target-arm/cpu.c: qdev_property_add_static(DEVICE(obj), &arm_cpu_has_mpu_property, target-arm/cpu.c: qdev_property_add_static(DEVICE(obj), Commit message needs to be rewritten as: qdev: Warning about using qdev_property_add_static() in new code The only remaining user of qdev_property_add_static() is arm_cpu_post_init(), but removing it may take some work. While we don't change it, warn people to not use the function in new code. -- Eduardo