From patchwork Tue Jun 18 09:44:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 252204 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 AEFC32C0096 for ; Tue, 18 Jun 2013 19:50:36 +1000 (EST) Received: from localhost ([::1]:52207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UosYc-0005xw-Ki for incoming@patchwork.ozlabs.org; Tue, 18 Jun 2013 05:50:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UosYJ-0005tV-Ef for qemu-devel@nongnu.org; Tue, 18 Jun 2013 05:50:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UosYI-0007ab-CM for qemu-devel@nongnu.org; Tue, 18 Jun 2013 05:50:15 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:52756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UosYI-0007aU-61 for qemu-devel@nongnu.org; Tue, 18 Jun 2013 05:50:14 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz11so3856419pad.16 for ; Tue, 18 Jun 2013 02:50:13 -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:x-gm-message-state; bh=jAmxkdJ7CQy8SE7gV0L/cPBNQrlP3Vi7l8v+itJhTt0=; b=GBmxnHOnCibiypWKa/FL3TOUjv6zVREN2s0qDpEIseJfUel884uBFjrWyrDqFMS42v ZPsKFSEStIUk9HZA9VDaiCNW/lH3amCHLSZ1uUKWtp8DfVRxL8BnW3NuqVqy2J3gBfep Zow3AsuKoLA2erKVm5+gaZ5Rw0IUK5AgylsJLtYpUg1iWWSDF4YA/r1UOEfCeO9l61TF /GhFRpu/iFoYZot+gfdfzKrbOvsoIsXd2tOjx0NieK48unUzhOW9JPjAv6JZemcDh6/0 xPDr+QVvrbcId5a6tpH9thlq+Aj6zP8U2YwA7ecED5bGr7vxbo0WlliEjsPlOHzUVcAC eFDg== X-Received: by 10.66.155.230 with SMTP id vz6mr1475979pab.30.1371549013366; Tue, 18 Jun 2013 02:50:13 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id u6sm17510640pbb.46.2013.06.18.02.50.05 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 18 Jun 2013 02:50:12 -0700 (PDT) From: peter.crosthwaite@xilinx.com To: qemu-devel@nongnu.org Date: Tue, 18 Jun 2013 19:44:00 +1000 Message-Id: <6e991961b746baaf40685a25eee20165ca587170.1371548267.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.8.3.rc1.44.gb387c77.dirty In-Reply-To: References: X-Gm-Message-State: ALoCoQmxH9OX0nCSkWJpMGm20ezwbSKWGV+Qz5Ol/7IjNqezotoNigCutBZc3jEUi6O/9rM5JIwV X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22b Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, mst@redhat.com, pbonzini@redhat.com, edgar.iglesias@gmail.com, afaerber@suse.de Subject: [Qemu-devel] [RFC PATCH v1 1/7] 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 QOM automatically inherits class and instance size from the parent class. No need to redefine as the same value as the parent. CC: qemu-trivial@nongnu.org Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber --- target-arm/cpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 496a59f..47a21ec 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -821,9 +821,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, };