From patchwork Thu Dec 21 03:16:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 756918 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp686348wrw; Wed, 20 Dec 2023 19:19:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4RS8DULP9FCAq+42ZohMuENivsh5tHdkBz5e8jY5JhQxf0O7EBoI/QedZFNg11CnRg8W5 X-Received: by 2002:ac8:5807:0:b0:427:7692:7ec8 with SMTP id g7-20020ac85807000000b0042776927ec8mr53894qtg.23.1703128794783; Wed, 20 Dec 2023 19:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703128794; cv=none; d=google.com; s=arc-20160816; b=iZpNA1yBHyLHxIykxoJe1ctakAnui8IwaQuh0VZt16IyLJJ4BQsxBap6DqMYZ+2Y2U ZtYUS3o8ZK1KmHAi/E7Fnmk+smynJVbR7JdIuf3TQLq8QDZ3A3xk6IHmg6BNI+BMtYkB p5GwN12m9fa6EHIH8nSsNPa2oriKDdA1AA/9tj9YXtnlPD4AQl1vz5e2XIqms4bi8Vph x74IHgxapuj2wYT7ZEoQR18M9i371Jlx8N5J68VVECILA1sv26K78C1o4kOQUqA0bMGQ iSu6H7vY9GTj0Cj16aLUn7RWVQDjtN2bIyuLU6xHgpmOPPYaYdpX47HiA1XZitDnWyyA Fjlw== 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=OiP1/Ua4j4jM2DfSNRL0DQxjZJY9wQwNeyA3e93brtI=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=HnYfOjmOazdK8o2kSTAmGfHdQXBXyp6txQUb52cmhe6jHY2D8vZ/LccD5OkEpP1m2k 5/qaOAyhG+wOjvWN1NGGzZ9rlv6IS/Y2iocAVTlEzqFoIQcjYsGIuNxNB0PoNjkGbo9j x9E7bQ3QFhr/GpYWdqBY3HnI6r895e/SLpHARNHGpSfKdRxBNkYgTgiRU00bbty9Qx4u OoLjWnio1A+wBd307HwSLvmPmSiK9Jhl8noEoYn+f/bK0+d2GyivZ0Wjz3n89VAUL8ii nDjy8ywPDXXaLtUZi9FghOj9aKPK8J8JAlswO5/L+V/SEFlPnZOURdWyP1tyV7s54unq enbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XIURY6zo; 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 a11-20020a05622a064b00b00425a5609949si1155217qtb.261.2023.12.20.19.19.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2023 19:19:54 -0800 (PST) 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=XIURY6zo; 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 1rG9ao-0005Pi-Sc; Wed, 20 Dec 2023 22:19:26 -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 1rG9an-0005EN-5H for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:19:25 -0500 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9al-00045q-JW for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:19:24 -0500 Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-42588e94019so10924011cf.0 for ; Wed, 20 Dec 2023 19:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703128762; x=1703733562; 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=OiP1/Ua4j4jM2DfSNRL0DQxjZJY9wQwNeyA3e93brtI=; b=XIURY6zoVNEf8jF5aroY2OalLWQeg1q0wzMeeV+VzcaLOEzoxcbhgft+Mxgfe32Vc7 uuPUc2bs2YfpJob9rZxAJJPpHDx2m2IvaflzKoG6RlUA71K32571FlMOWr5ObQNB0EmH 29wqhpPg8q1GhCysLic4pTPlqwt98zJK4z3FDiuvtu2+p2ljHMvU38tI45kL1JRms02M hji7RezLBK5wPoM39E3rN+5wn3R3ya6sXO57wx51NMpfnUPPNbiEa74owZ2M7R6LHdPx H9355WJPJnpkYqTFMlB4BwXz1UK1gDEROSnA/BAar6OByB3eOUtwk0xPNvQ15FSIghEp WNjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703128762; x=1703733562; 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=OiP1/Ua4j4jM2DfSNRL0DQxjZJY9wQwNeyA3e93brtI=; b=mFpaNd7ItcaItQTg6wdDvbeRvGv4xvk1EpOSW+qIn8AUTGC4XWxYCfXA+kW3deBt63 sbKX5pnb2un6L+7vkTbmPAxM2jFrY1X2XHvU85q56WYT7MYiGfw78qCEolkoGjNiwiad hvOoSnYH4fY5JTpr/Wf2rtNgyRwrUAOg129r5QqL6Mgv3WGtuEU8vLHKuDIHuVg9ehAM tvhJ6/R0RGNUjeqjshWE8G5tAkIiDA4ew93tyo2bOkIZeirCk+nAZ6/gcAVzYKqzcWI0 JeuAYKAKPElTyO7NE3qHHF6Jn6zB+pyEB317smlkDb0va6JcG6doTKwarCHLCJkP8uBh FI8Q== X-Gm-Message-State: AOJu0YyLwKS0cckJ4YiNiOZdfZK059s795Cqt9mKF1r7WtLowVT2S0ba TTxRj9U/Fe9x1bx3Qi9Ozs7HP/m7Ca6HybCMHTlwGoHDKLI5/jcG X-Received: by 2002:a05:622a:54a:b0:427:9c78:a2bd with SMTP id m10-20020a05622a054a00b004279c78a2bdmr43449qtx.22.1703128762632; Wed, 20 Dec 2023 19:19:22 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id n8-20020a05620a294800b0078116d55191sm360808qkp.130.2023.12.20.19.19.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:19:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 35/71] hw/ipack: Constify VMState Date: Thu, 21 Dec 2023 14:16:16 +1100 Message-Id: <20231221031652.119827-36-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221031652.119827-1-richard.henderson@linaro.org> References: <20231221031652.119827-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::82e; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x82e.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 Signed-off-by: Richard Henderson --- hw/ipack/ipack.c | 2 +- hw/ipack/tpci200.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ipack/ipack.c b/hw/ipack/ipack.c index ae20f36da6..c39dbb481f 100644 --- a/hw/ipack/ipack.c +++ b/hw/ipack/ipack.c @@ -93,7 +93,7 @@ const VMStateDescription vmstate_ipack_device = { .name = "ipack_device", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_INT32(slot, IPackDevice), VMSTATE_END_OF_LIST() } diff --git a/hw/ipack/tpci200.c b/hw/ipack/tpci200.c index 6b3edbf017..88eef4b830 100644 --- a/hw/ipack/tpci200.c +++ b/hw/ipack/tpci200.c @@ -619,7 +619,7 @@ static const VMStateDescription vmstate_tpci200 = { .name = "tpci200", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_PCI_DEVICE(dev, TPCI200State), VMSTATE_BOOL_ARRAY(big_endian, TPCI200State, 3), VMSTATE_UINT8_ARRAY(ctrl, TPCI200State, N_MODULES),