From patchwork Wed May 13 16:14:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= X-Patchwork-Id: 472008 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 023781400B7 for ; Thu, 14 May 2015 02:16:22 +1000 (AEST) Received: from localhost ([::1]:50039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsZKV-0001mh-R2 for incoming@patchwork.ozlabs.org; Wed, 13 May 2015 12:16:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsZIf-0007RI-Mh for qemu-devel@nongnu.org; Wed, 13 May 2015 12:14:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsZIe-0003EH-S7 for qemu-devel@nongnu.org; Wed, 13 May 2015 12:14:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsZIe-0003Dk-Ny for qemu-devel@nongnu.org; Wed, 13 May 2015 12:14:24 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id B018E35C827; Wed, 13 May 2015 16:14:23 +0000 (UTC) Received: from localhost.localdomain.com (vpn1-6-190.ams2.redhat.com [10.36.6.190]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4DGEK3d012325; Wed, 13 May 2015 12:14:22 -0400 From: "Daniel P. Berrange" To: qemu-devel@nongnu.org Date: Wed, 13 May 2015 17:14:02 +0100 Message-Id: <1431533649-23115-2-git-send-email-berrange@redhat.com> In-Reply-To: <1431533649-23115-1-git-send-email-berrange@redhat.com> References: <1431533649-23115-1-git-send-email-berrange@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH v4 1/8] backends: fix typename of 'policy' enum property in hostmem obj X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The 'policy' property was being registered with a typename of 'str', but it is in fact an enum of the 'HostMemPolicy' type. Signed-off-by: Daniel P. Berrange --- backends/hostmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/hostmem.c b/backends/hostmem.c index b7b6cf8..f6db33c 100644 --- a/backends/hostmem.c +++ b/backends/hostmem.c @@ -252,7 +252,7 @@ static void host_memory_backend_init(Object *obj) object_property_add(obj, "host-nodes", "int", host_memory_backend_get_host_nodes, host_memory_backend_set_host_nodes, NULL, NULL, NULL); - object_property_add(obj, "policy", "str", + object_property_add(obj, "policy", "HostMemPolicy", host_memory_backend_get_policy, host_memory_backend_set_policy, NULL, NULL, NULL); }