From patchwork Thu Dec 21 03:16:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 756955 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp687533wrw; Wed, 20 Dec 2023 19:24:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHM3VTNJNKMOkT8foDkGc5Pubx9YZGzaxu8qb1s1jdAGtUVVDO9Nhql4uHuLSPR0Crhx40a X-Received: by 2002:a05:6214:27ed:b0:67f:1292:c4f6 with SMTP id jt13-20020a05621427ed00b0067f1292c4f6mr14110746qvb.11.1703129099253; Wed, 20 Dec 2023 19:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703129099; cv=none; d=google.com; s=arc-20160816; b=kn39YLE42Foq3hRBwp9DJlfNw+Prii0ytmp+QCOTDUefdW5COOPelF6Y45gy7qZwKo Dc6rJ8e4mL34i2FDfbQIUCfIPqGaOGoIDTvrRE904Me1yu03RCtGPlKgp9B4y+gJT1hk epI2slJwqeCnA6JuL4DvFYrKlabtS+tN8nYFc6TujN/SRs5uMVcWZtD3Z/tVxWMJg+5m mUUDsAyGK1XqnQIiVHZb3jmKrBeZZpxpWiBuoxIifgR8BNp2Mou0hQG42/Iseow+/UiP 2SqFS/pF/f1LYeZfur3WlXrCrVrMM+xtgXS00oRgLJNdoexU+vvNl6xBNDV2I5kN1wJl Cv1g== 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:cc:to :from:dkim-signature; bh=hbecgr9JC3ST7n8wppu7ltseAYSc7D1Ylz9MnsTxWiQ=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=wBhC4BlR2voLFkyLtlzOLXaUPXGLo/eGWfbT91/qAGZEJ9OHAQDDAWWuye8ggQJ+gu gHLGwWfz700nzlYYfx+J7jV6REhdsL8e1G/ikpilSZv4oX7cNui2O/X9AdihCUvGaVwI uxCipOjbY7Yzw40sCXID/LDAB2FTV4oFQUYlkgZv4wE65saCkXvPfmrZYhY6whd70cfJ X0YBeDPZz+JK+MlNvlYv8N0wARMacCgmS2fulP/Pn5DlCESIMeS/BSQ+i+KulI+NoD/5 DVD4AJs/thl1/DT6OKW1z8ijRZ9uiBsZQ6IqpTI4AGn64FkTmBn/ZRLUIp/3TU6E4G9Q ZhWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bvHV5j7B; 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 j3-20020a0ce003000000b0067f6204a180si1302502qvk.19.2023.12.20.19.24.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2023 19:24:59 -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=bvHV5j7B; 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 1rG9g2-0004Yv-SJ; Wed, 20 Dec 2023 22:24:50 -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 1rG9g1-0004FH-3n for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:24:49 -0500 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9fz-00011j-D5 for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:24:48 -0500 Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-781120575f5so21001885a.0 for ; Wed, 20 Dec 2023 19:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703129086; x=1703733886; 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=hbecgr9JC3ST7n8wppu7ltseAYSc7D1Ylz9MnsTxWiQ=; b=bvHV5j7BC+mrmyS2c6j0UKhJCubrKX5nDHrSjD5cVnF9ERna3YfnnWa6rxDj63FfUj GH8tUmnxcj2gDaNWaHbxIr9lafEh+P/eLdt6RzmHv5r4eVFwZt1tJNFzTInGPSOnGt3U WRB2joZVgxqB6gp1HWcRi3VMmbDyl0XUxSXWgb5AOxcnnmdd2O9RpssNs3MEZKWMTsAi G5jw8DfzGXm8GfuBunjT35idQf2CdP3xZVckyemLXsqgvKrCuQ4p54EOdcc+5/9GMZCS 9Efyu+01s3k3G6ZenHdTVxjM3tMWe8pbKNzsFRq4Hub3C2lh1v0GF1AE1U2qff+R3B4r F8AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703129086; x=1703733886; 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=hbecgr9JC3ST7n8wppu7ltseAYSc7D1Ylz9MnsTxWiQ=; b=nD2BAHglx2Hyg0Yg7bB5VoT9/vWBMuzbUMgbIDCFS2pu29XHdVFJWgCE9EMMjMRthX TkZTLlgoABj5CAM9Fkmwl0cD6JlmdRaalPJ1PH6sckVyLpt3kr5E1ah/xD/m7mXpFecp 3Efzf9NQl8ZWECR8plvPilS5no3btqjtjTATb4nrFugYc4Qi+Xuf0YHnzK3er89Z9s79 XNsFjnGC8cIiTgkG0KK2jUdtYnIljuC27/UpJD9peNuovetP5KYpG68h8ETtWwJhVg83 9G+VyiLSsFvZ42fTDIBmntzMHLZkGni4bph7YAOa0cKAOcmcEHMdDndMyVcHxG63+NlT D9qg== X-Gm-Message-State: AOJu0YypajTPBVdOvYTkh4GeoLuDk3F2ssi3DBX7V5YPD/kcdomhnOYw jk+/h5G2lpQaWWd7w/6GWTSvHTCEQoGj3ir+gJ8853Pm X-Received: by 2002:a05:6214:20e3:b0:67f:4926:60c0 with SMTP id 3-20020a05621420e300b0067f492660c0mr7429056qvk.1.1703129086550; Wed, 20 Dec 2023 19:24:46 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id l16-20020ad44d10000000b0067f7b6318b9sm347257qvl.10.2023.12.20.19.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:24:46 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 69/71] util/fifo8: Constify VMState Date: Thu, 21 Dec 2023 14:16:50 +1100 Message-Id: <20231221031652.119827-70-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::72b; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72b.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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- util/fifo8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/fifo8.c b/util/fifo8.c index d4d1c135e0..de8fd0f1c5 100644 --- a/util/fifo8.c +++ b/util/fifo8.c @@ -109,7 +109,7 @@ const VMStateDescription vmstate_fifo8 = { .name = "Fifo8", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_VBUFFER_UINT32(data, Fifo8, 1, NULL, capacity), VMSTATE_UINT32(head, Fifo8), VMSTATE_UINT32(num, Fifo8),