From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS7jF-0003vc-E8 for qemu-devel@nongnu.org; Sun, 01 Mar 2015 12:32:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YS7j8-0008Vi-1Z for qemu-devel@nongnu.org; Sun, 01 Mar 2015 12:32:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS7j7-0008VX-R5 for qemu-devel@nongnu.org; Sun, 01 Mar 2015 12:32:25 -0500 Date: Sun, 1 Mar 2015 18:32:14 +0100 From: "Michael S. Tsirkin" Message-ID: <20150301173214.GH8233@redhat.com> References: <196e09a27b8f13e96fe8ef6559abed8fd479a740.1424912878.git.zhugh.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <196e09a27b8f13e96fe8ef6559abed8fd479a740.1424912878.git.zhugh.fnst@cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH v3 01/10] acpi, mem-hotplug: Use PC_DIMM_SLOT_PROP in acpi_memory_plug_cb(). List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhu Guihua Cc: hutao@cn.fujitsu.com, qemu-devel@nongnu.org, tangchen@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, pbonzini@redhat.com, guz.fnst@cn.fujitsu.com, imammedo@redhat.com On Thu, Feb 26, 2015 at 09:16:43AM +0800, Zhu Guihua wrote: > From: Tang Chen > > Replace string "slot" in acpi_memory_plug_cb() with MACRO PC_DIMM_SLOT_PROP. Probably should be "macro". > Reviewed-by: Igor Mammedov > Signed-off-by: Tang Chen > Signed-off-by: Zhu Guihua Applied, thanks. > --- > hw/acpi/memory_hotplug.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c > index ed39241..c6580da 100644 > --- a/hw/acpi/memory_hotplug.c > +++ b/hw/acpi/memory_hotplug.c > @@ -168,7 +168,8 @@ void acpi_memory_plug_cb(ACPIREGS *ar, qemu_irq irq, MemHotplugState *mem_st, > { > MemStatus *mdev; > Error *local_err = NULL; > - int slot = object_property_get_int(OBJECT(dev), "slot", &local_err); > + int slot = object_property_get_int(OBJECT(dev), PC_DIMM_SLOT_PROP, > + &local_err); > > if (local_err) { > error_propagate(errp, local_err); > -- > 1.9.3