From patchwork Mon Jul 15 04:10:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 258947 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E8AB42C010B for ; Mon, 15 Jul 2013 14:15:16 +1000 (EST) Received: from localhost ([::1]:46199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyaBu-0001hf-HQ for incoming@patchwork.ozlabs.org; Mon, 15 Jul 2013 00:15:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyaBb-0001eg-07 for qemu-devel@nongnu.org; Mon, 15 Jul 2013 00:14:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyaBa-0005c5-0Y for qemu-devel@nongnu.org; Mon, 15 Jul 2013 00:14:54 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:59312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyaBZ-0005c0-R3 for qemu-devel@nongnu.org; Mon, 15 Jul 2013 00:14:53 -0400 Received: by mail-pb0-f45.google.com with SMTP id mc8so10798381pbc.4 for ; Sun, 14 Jul 2013 21:14:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=Nw9PeRciMJJyn4rDNoTKfpPk0oAmRO7AE1yPtnlIKw8=; b=f5O+ySj0HB8w7brYWvE/5jhAFPhoFNeKnFnJotYK66ST8UEwZ/RiLFeFgROv6BWPhs mJfHM/0X9ZPPmgf2DQJtYZCd/3tPEIejKoClDEXbg9Mbpl+I5cgn280MqeSlNsdBqJEI yKtL57rVtHw3Tu+h5SA30rpVRvY3934Ol2Xwr40cC9gGwiixBadg/jEtrZzjvANjD7jc m7a3xMGqD9K3dyqDAndipgsR9JaPFWdCXAg2/y7XGEbhJX8hTSuPqzD8HfG9Zu6647YP FK1j9lb0ALcwoMpJ5UtZsd6sClgqcGABHBU7HvBh8/D1eQzTY+rIwKOVkylM/j7kn9mg J55A== X-Received: by 10.68.97.229 with SMTP id ed5mr51990901pbb.37.1373861693116; Sun, 14 Jul 2013 21:14:53 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id it7sm26468743pbc.25.2013.07.14.21.14.50 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 14 Jul 2013 21:14:52 -0700 (PDT) From: peter.crosthwaite@xilinx.com To: afaerber@suse.de Date: Mon, 15 Jul 2013 14:10:20 +1000 Message-Id: X-Mailer: git-send-email 1.8.3.rc1.44.gb387c77.dirty In-Reply-To: References: MIME-Version: 1.0 X-Gm-Message-State: ALoCoQm0WoFnovzhMUOLxPn2DmhXS2cWGH0yNcCO2HZrdbka6lcuTqW3JI5sp/y5NnSOsLjST3XE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.160.45 Cc: peter.maydell@linaro.org, hutao@cn.fujitsu.com, aliguori@us.ibm.com, qemu-devel@nongnu.org, mst@redhat.com Subject: [Qemu-devel] [PATCH qom-next v3 1/4] target-arm/cpu.c: delete un-needed instance/class sizes 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 From: Peter Crosthwaite Since commit aca59af612840772f18598363b65a25bf02bb569 QOM automatically inherits class and instance size from the parent class. No need to redefine as the same value as the parent. Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber --- changed since v2: Added fixing commit reference (AF review). target-arm/cpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index be26acc..c2e1800 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -818,9 +818,7 @@ static void cpu_register(const ARMCPUInfo *info) { TypeInfo type_info = { .parent = TYPE_ARM_CPU, - .instance_size = sizeof(ARMCPU), .instance_init = info->initfn, - .class_size = sizeof(ARMCPUClass), .class_init = info->class_init, };