From patchwork Thu Apr 30 14:42:18 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: 466567 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 C893814007F for ; Fri, 1 May 2015 00:43:54 +1000 (AEST) Received: from localhost ([::1]:44323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynpgu-0005EM-HG for incoming@patchwork.ozlabs.org; Thu, 30 Apr 2015 10:43:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnpgE-0003nw-Qw for qemu-devel@nongnu.org; Thu, 30 Apr 2015 10:43:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnpgA-0000Tq-3s for qemu-devel@nongnu.org; Thu, 30 Apr 2015 10:43:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynpg9-0000TD-Vz for qemu-devel@nongnu.org; Thu, 30 Apr 2015 10:43:06 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 892A88EA4C; Thu, 30 Apr 2015 14:43:05 +0000 (UTC) Received: from localhost.localdomain.com (vpn1-4-79.ams2.redhat.com [10.36.4.79]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3UEh1fK001781; Thu, 30 Apr 2015 10:43:04 -0400 From: "Daniel P. Berrange" To: qemu-devel@nongnu.org Date: Thu, 30 Apr 2015 15:42:18 +0100 Message-Id: <1430404944-7322-2-git-send-email-berrange@redhat.com> In-Reply-To: <1430404944-7322-1-git-send-email-berrange@redhat.com> References: <1430404944-7322-1-git-send-email-berrange@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 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 1/7] qom: 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); }