From nobody Tue Nov 26 22:14:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1703885529; cv=none; d=zohomail.com; s=zohoarc; b=QHdSmAK75Qc5CkBwm91UMAdQT4CuHdF2flgxw5i1oW/aMZm83rcxgOuY2Acampc4yyAocOJdnSNsqn/vzVGRlgx1XaKnGduePWOPZu20FcYJ+39IP6n4nyHQcPmNDDYmg9/HQTLQmqkackF5i9Cs8KnmXZF/twwAwds+tE+F27A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885529; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=fgC12UagrksFWuSMkuP25mZZ0t/ZqvQsDdnKNN0TPhA=; b=EhoP3x73iM/T6mIIR3ZdrEm+raBF30Hj1JTIrZIjjfou3MlmJztcQJHakbB7FjAclo61fmFP5e1sT2iB0d4ZmdEnTNVTjwunqd2oWd2pYed/jwkrMdCWjZQcHvtgECcLmZQ4l8XetaDxr7q0ivf3fy4ywZI82nYeBSRvsP+Dbvo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1703885529345516.4240112704501; Fri, 29 Dec 2023 13:32:09 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKQI-0000fB-5o; Fri, 29 Dec 2023 16:29:42 -0500 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 1rJKQ3-0008Ra-GW for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:32 -0500 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKQ0-0000QI-20 for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:27 -0500 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6d9aef87d44so1519464b3a.0 for ; Fri, 29 Dec 2023 13:29:23 -0800 (PST) Received: from stoup.lan (203-217-28-32.perm.iinet.net.au. [203.217.28.32]) by smtp.gmail.com with ESMTPSA id bd33-20020a056a0027a100b006d9a96b7d0dsm11285396pfb.208.2023.12.29.13.29.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:29:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885362; x=1704490162; darn=nongnu.org; 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=fgC12UagrksFWuSMkuP25mZZ0t/ZqvQsDdnKNN0TPhA=; b=BRoOhXpHRovmbqCFZardOMWC3OpJkyi8x3upaXOFYzDSFL5RMDu5nam9mzMMluOvtw E6Vf9gsePRCdx+/PiC3C6LJApBZWlrOZcya+PIQaInUL+SjQ8jzzD3wDeCFLJdfCHmjy jM+tkab6BZeEI9wohGQuqQQkQ+Pmkt9ityqV4x0QM43l8TmiJa6yTHkFsxA2b+PXW+Vh 2e57gBcLUCDWxhkZwsDGly5IQAsjLkQZY1j6uHgL37rvBnRTw3yX+DRYkIfoILE8fHIb 2VGwwWraWrpftdtRdEQmbw3S+53QdYnOvv5Gx97qsclPSoFmYV2HWNwhl2712VSNA54+ Ow+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885362; x=1704490162; 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=fgC12UagrksFWuSMkuP25mZZ0t/ZqvQsDdnKNN0TPhA=; b=txjgqzN7J4hhVBMGlrR6Das4dTP74tWeUTLhSxuQ70ZB7GALYltpu+HPnoGAsyN9H6 2Hn6dXWakfqOQvfdxog3F3GvR1FCiTAggbIGuby1egpQOfKBBho/5TkyMXwKpw6mgBTy Qg337Y3GBUy0MeGbj4aAy+DXQlkN9XYLI+2K27eWbFYu+ytlyV/fsA6nP2VYQCN0UtmH Xe94Vd9+mjZTq1Nsr3YeXeievMyRXHa1EYIDNaucyhN7TX9ufNIQhzPIdbqIOw64K/ji koS8t8S5DLg6DhZiVdAwrvNYVTiQCzQ9BV0uZW8+uAnu/pmO0UrmjPlKornqqKTk5GDn ONIA== X-Gm-Message-State: AOJu0Yw6nBxmztksiN/KcrfCgCSniFjJJlgKSgl18p2VmjT4J6wq6Lcb P94MMPqJatLhcD6b4Tq951UUGbHLYh4bL+bZsIIm0lkljl6awA== X-Google-Smtp-Source: AGHT+IGl7WDA0XWJUX9OHmmJVwKIngd8VecTxF3J7K35aABqMdyv47lOWebN+IyWuZQTHkTjBG2lLA== X-Received: by 2002:a05:6a00:22ce:b0:6d9:e9ea:cfc8 with SMTP id f14-20020a056a0022ce00b006d9e9eacfc8mr4713639pfj.16.1703885362693; Fri, 29 Dec 2023 13:29:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 64/71] backends: Constify VMState Date: Sat, 30 Dec 2023 08:23:39 +1100 Message-Id: <20231229212346.147149-65-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231229212346.147149-1-richard.henderson@linaro.org> References: <20231229212346.147149-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1703885530965100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-65-richard.henderson@linaro.org> --- backends/dbus-vmstate.c | 2 +- backends/tpm/tpm_emulator.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/dbus-vmstate.c b/backends/dbus-vmstate.c index a9d8cb0acd..be6c4d8e0a 100644 --- a/backends/dbus-vmstate.c +++ b/backends/dbus-vmstate.c @@ -393,7 +393,7 @@ static const VMStateDescription dbus_vmstate =3D { .version_id =3D 0, .pre_save =3D dbus_vmstate_pre_save, .post_load =3D dbus_vmstate_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT32(data_size, DBusVMState), VMSTATE_VBUFFER_ALLOC_UINT32(data, DBusVMState, 0, 0, data_size), VMSTATE_END_OF_LIST() diff --git a/backends/tpm/tpm_emulator.c b/backends/tpm/tpm_emulator.c index f7f1b4ad7a..ebdd2e0a69 100644 --- a/backends/tpm/tpm_emulator.c +++ b/backends/tpm/tpm_emulator.c @@ -939,7 +939,7 @@ static const VMStateDescription vmstate_tpm_emulator = =3D { .version_id =3D 0, .pre_save =3D tpm_emulator_pre_save, .post_load =3D tpm_emulator_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT32(state_blobs.permanent_flags, TPMEmulator), VMSTATE_UINT32(state_blobs.permanent.size, TPMEmulator), VMSTATE_VBUFFER_ALLOC_UINT32(state_blobs.permanent.buffer, --=20 2.34.1