From patchwork Thu Jul 6 13:25:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 699593 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp3312018wrs; Thu, 6 Jul 2023 06:26:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgPP5VgWZzfsB6rzg7xMquXhDSBsUJN+s/JW6UiqFpBR+DVOm3I6S8zy6jyQFT6WZEzWkp X-Received: by 2002:a05:6358:9195:b0:134:d467:b751 with SMTP id j21-20020a056358919500b00134d467b751mr1887307rwa.21.1688649992598; Thu, 06 Jul 2023 06:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688649992; cv=none; d=google.com; s=arc-20160816; b=m9oilsk3wvSm0DqitldZtBE+NumKiGl3r3jPWM9rBJRPxNSmeuEKYK07ndMXhTDgaj T17MoGR6HftYf0+ODFdVIANQzvTpf3lrOWCYa9EEASQFGRWlx5EIRwi5wjPoH+3VFUYg 90GzrS+nyAa/7vw029XSk3yNylxevVBpM0gPK0tFxkDMrX1NsCbNK3f7aDYqj/HcDW8X +CBw+sAu1RfOTTEg2OKS82Xgvv2NAcLdndS2HNtU5GF7dc7QMxlJlLBiUD+wqfKQQZn9 xHaB0+EOFTTx/F+RgMtfYvDh0XmAYo8UCs5mzudcutDJ1Ymi++dZifoKkz+MTK+yAd+1 EUuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ljXuz5WdOwWpxwvCuXAlprlm5SQ6d0e/c1sdlk1yWik=; fh=bFDrUYhlTVi/QyetgXx/byg2+yO/22Hp9SjwoefyKLk=; b=Uu9mdd0R9Ryl33BpOHgNcLDsdrbJu1HX+gM/DvHxY7Vjbe28GaFIZfIqu7al1DQNGY 8cISbDp6S4jZ3/+VyhQbJCmsPKK38jKnZvJkhj82yiQQSgGrVK4+aqKWLMjqYev2S3jF Ps2I1nQ3yBvMIaTkWNgRIGan3SvqWgi6apRGR9Y5Fioj69xq1vUoLTvAwkPHwWwVxZBR HEhCTilHOgwoikDbcAEYC4Ergp2memWzbef8vhF1WZivXPs2Lne9o7nQF6EEm1F3+vup ZUn/vdr/pypEayr7OIMtd5bpViaEmFoSuIkMIveiQC99FHMJx++pfMizvwdEaMTBExEQ nhig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="phB3Kw/H"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 17-20020a05620a079100b007654073efc6si1102427qka.281.2023.07.06.06.26.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Jul 2023 06:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="phB3Kw/H"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHOza-00057s-Bn; Thu, 06 Jul 2023 09:25:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHOzK-0004r3-77 for qemu-devel@nongnu.org; Thu, 06 Jul 2023 09:25:38 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHOzD-0000sN-Ra for qemu-devel@nongnu.org; Thu, 06 Jul 2023 09:25:34 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-314172bb818so621315f8f.1 for ; Thu, 06 Jul 2023 06:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688649918; x=1691241918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ljXuz5WdOwWpxwvCuXAlprlm5SQ6d0e/c1sdlk1yWik=; b=phB3Kw/HaZcD6DKkUoFE+qI5nY9OXcPllIFb0eekj2xo7bO2ykUpxaAhSlGJZMldkB MPBQNP1+NdKV3ga3DUVcLhi2pKKXYhd1acwVLrCpBZ7xs7isf+GcBqO3MltkojHTYxTA 1f23mKz4j+IJsNdj0U1MPY+i6OSBK8ZChaPoi6Ht5GTlomSK/yf5xYVIP92bR5v/xB22 FGbkcnCMf94PjSLwiY09NCLioL2XKHtQvuGJoPMGDLD549JwzBXef6N9F0TwS9VOdNfX xzLt/NF7ArktHYMfMqUZc0T+ojdgua+om4TlIZTlwoNl4RCQK3Rf0YCXk94mldUu8w20 OMfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688649918; x=1691241918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ljXuz5WdOwWpxwvCuXAlprlm5SQ6d0e/c1sdlk1yWik=; b=Rq/rKVJfbzquT8TQ66JJh5jnXuON+3C4zUJib59C9vxPwdb5Wz4youDSl42Sl0573u je5DrFk2jxCg5aDzBV5qSOvER/+YTyaUtT1/sbQJTwyil9bALpBhKH8I26tTSIE99brF u2lzwgzSZ8c/gA5J2Bss0Cx55LMDT4Lu91AIet9HDAtoQy6+45odyucYlNdgi1dSXbai wKDMiLXESqyLGv1t32IRtgH4PNrHGtoO1Ae0ZInUg04R/MXh2Eb+0uzR/QHhGH73wz0e xVSJwcvuNCcYIj1OFjsSq92RsgLFVM0zuNrfytZ0Q9fbPzs+TUpWHH66A1IeHPbNvurq iBXQ== X-Gm-Message-State: ABy/qLaAeQIcpWJiLiAx0qMH7lmEPy+wc0nAJksxYz1aoMvTdjC4QOyo 2bDyqUM7onnHbv3Bp8wB3wzVLrW2JJAPTvxMruA= X-Received: by 2002:a5d:5913:0:b0:314:350a:6912 with SMTP id v19-20020a5d5913000000b00314350a6912mr1384321wrd.36.1688649918606; Thu, 06 Jul 2023 06:25:18 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id s15-20020a5d510f000000b00304adbeeabbsm1856170wrt.99.2023.07.06.06.25.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 06:25:18 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 10/14] hw: arm: allwinner-sramc: Set class_size Date: Thu, 6 Jul 2023 14:25:08 +0100 Message-Id: <20230706132512.3534397-11-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230706132512.3534397-1-peter.maydell@linaro.org> References: <20230706132512.3534397-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Akihiko Odaki AwSRAMCClass is larger than SysBusDeviceClass so the class size must be advertised accordingly. Fixes: 05def917e1 ("hw: arm: allwinner-sramc: Add SRAM Controller support for R40") Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-id: 20230628110905.38125-1-akihiko.odaki@daynix.com Signed-off-by: Peter Maydell --- hw/misc/allwinner-sramc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/misc/allwinner-sramc.c b/hw/misc/allwinner-sramc.c index a8b731f8f28..d76c24d081f 100644 --- a/hw/misc/allwinner-sramc.c +++ b/hw/misc/allwinner-sramc.c @@ -159,6 +159,7 @@ static const TypeInfo allwinner_sramc_info = { .parent = TYPE_SYS_BUS_DEVICE, .instance_init = allwinner_sramc_init, .instance_size = sizeof(AwSRAMCState), + .class_size = sizeof(AwSRAMCClass), .class_init = allwinner_sramc_class_init, };