Received: from eggs.gnu.org ([208.118.235.92]:47279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdnAA-0001Rk-BP for qemu-devel@nongnu.org; Wed, 28 Nov 2012 14:19:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdnA4-000414-Kk for qemu-devel@nongnu.org; Wed, 28 Nov 2012 14:19:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdnA4-00040y-Cw for qemu-devel@nongnu.org; Wed, 28 Nov 2012 14:19:08 -0500 From: Eduardo Habkost Date: Wed, 28 Nov 2012 17:20:08 -0200 Message-Id: <1354130408-22625-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH] target-arm: use type_register() instead of type_register_static() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori The type_register_static() interface is documented as: type_register_static: @info: The #TypeInfo of the new type. @info and all of the strings it points to should exist for the life time that the type is registered. But cpu_register() uses a stack variable for the 'info' argument, so it has to use type_register() instead of type_register_static(). Signed-off-by: Eduardo Habkost --- target-arm/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index b00f5fa..ac914d2 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -778,7 +778,7 @@ static void cpu_register(const ARMCPUInfo *info) .class_size = sizeof(ARMCPUClass), }; - type_register_static(&type_info); + type_register(&type_info); } static const TypeInfo arm_cpu_type_info = { -- 1.7.11.7