From patchwork Mon Sep 9 17:28:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 826629 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp2130478wrb; Mon, 9 Sep 2024 10:30:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVQlLBL3SIIzCtBF5MsUYivowU7i9FndndqucSNTQo08M6f02RJ7O5syk+7cNjI0e4Bjbxk/g==@linaro.org X-Google-Smtp-Source: AGHT+IFaAwZYXlaTn/BAv6nP2YyxpFLFQs9WNu5O831VzLP5fxFYh5IHRMI2Biu62OvFN3ss3Fb3 X-Received: by 2002:a05:6830:6b0e:b0:710:ed53:7e4e with SMTP id 46e09a7af769-710ed538824mr3752532a34.22.1725903038678; Mon, 09 Sep 2024 10:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725903038; cv=none; d=google.com; s=arc-20240605; b=cX4T54SBFa3DK0WSzxTf7km7ssiNJ7+A7fwVBcWIegqXB3rJ1E6BulbdHodTbzye01 xaKc2Wta6PorDy/YbbFv+0OYK19b7qpyxHibNfoR25EHGkkAuGPvZPVU6QSOSZChQbhq eSBRqd2AZAhDM+TJK87z9iWIcMGFw6o3WD2EqT+moYsRLBzfu02ITCE4i/YxwP6EQTA3 SFwR5I+GWjVfjUNylm4LfW9im8RqM544GmNo0NuVJgm6XNnJLp63vXcSdx5GWpCDgT9R yTIOvgFJqZfxpAubj7+zmGr1IrLq+fyjHJyoPoWnAXBKptOKPlWFyjHekoHI6whiTzQ5 YGDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:cc:to :from:dkim-signature; bh=R9JmBFquTO7CeyCRL5oNRbzXMkFmE+/UIxsMm6VSJ8c=; fh=4bMsMJJHDmTQNFavmZaD/iTPOPK/LdH9YFdHoY+StpE=; b=gPeiObPpdGSiTSpH5pSYe3m4Ba034fDw9sczmOGgPrHmpMLvB7uRmHCThRy0itAQ6y 96am6apWZayaPnfhwj//08aUzA8Iu+abCczxEVEUsyjn5JvNgWv7/t3ultFLxACu2QrY 18eGHqA/QfwQe9QbM7Y5Mm5b4l+rrJ2Hbg3E7UEmJ0YlBwhVjK1BtlDrIYS8vpZqjOh4 YN6sYCdeaFiOr259S3Ylc/c1r55QvETZlwMCYSGY9uDML/8oQDJyFiY14QpFxPUiUF+L 7+xdMytnjCn7Kl34yRAl8hzMmKISaIQdBmpUvsUKhi+/vVPm62odTMxDp+Tzq5vbxEX2 yy3A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SQlPNO0u; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45822f82692si58468141cf.505.2024.09.09.10.30.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Sep 2024 10:30:38 -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=SQlPNO0u; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sniC8-0005gY-2Z; Mon, 09 Sep 2024 13:28:56 -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 1sniC3-0005Je-VX for qemu-devel@nongnu.org; Mon, 09 Sep 2024 13:28:52 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sniC2-00064v-CW for qemu-devel@nongnu.org; Mon, 09 Sep 2024 13:28:51 -0400 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1fee6435a34so39722015ad.0 for ; Mon, 09 Sep 2024 10:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725902929; x=1726507729; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R9JmBFquTO7CeyCRL5oNRbzXMkFmE+/UIxsMm6VSJ8c=; b=SQlPNO0uz2cSyCJvlaVWfJwJyXsQVEJJjQY4PMmKQyA0pJ3nSt1ck830vB4VgCBtlD pcgSdnm0mwPnhm6xeueKExAEE7JLR98FF5Q5JJYcy81m2Q2RtW666hud1gUPqBX8vTfk 6h7ilL9g/OF9vRcSPfvj/bEhgvT0XAl+y1Sdz7k6gwbeWbcKMqsdHpTjpHJy1hgrMN8U unL/CsXUlMosdywfcgTVFZOZeCYOSJHkWuWflzcFf2SxKzVL9rEa3Z9VAToeK84L9KMM rqHMArA01RcKCSKfPr8fxzIy+lRm8LJ4lAmKc/Qhnbbdf0rkJO+Cz+rOWSmJSd8YCrUo 1qwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725902929; x=1726507729; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R9JmBFquTO7CeyCRL5oNRbzXMkFmE+/UIxsMm6VSJ8c=; b=ZBU39krbZ7MzFVhG1IvlKfGue/tH5bhTFiH5RHtvOpuOKGZnUhjh5wmJFN/ZSoOB7X APSDbr3VCfGIwaKW64uqO8AJk3aJnmDHGzXoByhfkv5j9nhR1wve5jjrMLRob17ZJt1z NfWMzneRMK7WqqISKTnVbZq5qYsKblCVnXCmk/uOHri7z1Nq7SdvpLT2aCuP8LQDXEXo r2GIxZcnlKd1+1G75OLLbtTloWNh/vmW5R5ZKyjsfEUnjl4JROatzkkGmUxe4XbMpQ3m q5FEwu5hS9VPmenMLGLXGTdvM6k7Jgj3yMzC0/ek350HwIBP0uJw0u7mtpXohg9HpRWF NL0g== X-Gm-Message-State: AOJu0YzdfvBM+9gDdD0r2dTfh91dZlPl6Cwmso+t1feK1pwkg2YQN1vA tlGO0apiU4W/yL+Qwp802wI3nYHC2oFDC7MjF4muPE55LP79vLpOIlgnLFPLk4RMPNZt8ootrfg j X-Received: by 2002:a17:902:e850:b0:205:8212:1f2f with SMTP id d9443c01a7336-206f04c7e54mr132341845ad.10.1725902928696; Mon, 09 Sep 2024 10:28:48 -0700 (PDT) Received: from stoup.. (174-21-81-121.tukw.qwest.net. [174.21.81.121]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710e11e02sm36539875ad.14.2024.09.09.10.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 10:28:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, daniel@0x0f.com Subject: [PATCH v3 25/26] target/m68k: Make vmstate variables static Date: Mon, 9 Sep 2024 10:28:22 -0700 Message-ID: <20240909172823.649837-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240909172823.649837-1-richard.henderson@linaro.org> References: <20240909172823.649837-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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 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 These need not be exported beyond cpu.c. Fix a typo in vmstate_fpu. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/m68k/cpu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index 188afc57f8..fd6c227820 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -400,7 +400,7 @@ static int fpu_post_load(void *opaque, int version) return 0; } -const VMStateDescription vmmstate_fpu = { +static const VMStateDescription vmstate_fpu = { .name = "cpu/fpu", .version_id = 1, .minimum_version_id = 1, @@ -422,7 +422,7 @@ static bool cf_spregs_needed(void *opaque) return m68k_feature(&s->env, M68K_FEATURE_CF_ISA_A); } -const VMStateDescription vmstate_cf_spregs = { +static const VMStateDescription vmstate_cf_spregs = { .name = "cpu/cf_spregs", .version_id = 1, .minimum_version_id = 1, @@ -444,7 +444,7 @@ static bool cpu_68040_mmu_needed(void *opaque) return m68k_feature(&s->env, M68K_FEATURE_M68040); } -const VMStateDescription vmstate_68040_mmu = { +static const VMStateDescription vmstate_68040_mmu = { .name = "cpu/68040_mmu", .version_id = 1, .minimum_version_id = 1, @@ -469,7 +469,7 @@ static bool cpu_68040_spregs_needed(void *opaque) return m68k_feature(&s->env, M68K_FEATURE_M68040); } -const VMStateDescription vmstate_68040_spregs = { +static const VMStateDescription vmstate_68040_spregs = { .name = "cpu/68040_spregs", .version_id = 1, .minimum_version_id = 1, @@ -505,7 +505,7 @@ static const VMStateDescription vmstate_m68k_cpu = { VMSTATE_END_OF_LIST() }, .subsections = (const VMStateDescription * const []) { - &vmmstate_fpu, + &vmstate_fpu, &vmstate_cf_spregs, &vmstate_68040_mmu, &vmstate_68040_spregs,