From patchwork Mon Nov 6 06:58:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741291 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp949309wrr; Sun, 5 Nov 2023 23:11:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEscL/FG5kn6ZZRW0CT0qnVS0QI4kZ9EaRND9CInzX0xIbzOSCcMuk3dRtYvfvnXSPf8cHw X-Received: by 2002:a67:c21d:0:b0:45f:2b81:5c1b with SMTP id i29-20020a67c21d000000b0045f2b815c1bmr795200vsj.24.1699254719624; Sun, 05 Nov 2023 23:11:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699254719; cv=none; d=google.com; s=arc-20160816; b=samcQ+Zj4RTO+Dr2XdqpVm87O/fl/XV3D+2lqOuI7mD4nUQa76t5biywvFvFSxm0k8 vIlTL0Davo9g57dY70wNWr2VmEsE2TENPc+kZy+NCVL98frfRFLUhew4sV4ifgSVhpf6 XPI7pjzLts4zrXOvIaafgRj5eXo4mLQTzhKkIh64RZyzp4qHq3YBuhOd1Ch768AQ7m1S gxW8r3Lky/DXTmZ/8Sk+X0wsD6hLiTIXNj7Pji6LRjFH8kqaqxWiH95R8SfEshgZiuip 21NSkFKreycDtqTqlLakEtVNBQfmJfU4LboZBRaWcbsXMrHNmIVTGcPoViGDGK5owix5 WssQ== 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=ZN+AUq0fMLCJmtXlKU3nsk7QrHFyeF7qawtkUtQVWh8=; fh=U+hGNjcWZPeyLe2bTdTFM68h7FRptferheHiMMFpeys=; b=CI14zUIwGWZW3Zxv60rf7DdyUwI6afwc9pezBCrtWq6xPtEwIwmbLBVDNd++B9jZEz QxggqvCh/pQS5Fug4wjVaBHcj3qRElfX4xhpSJZRrP5VWOWCDYePl4UPkvegJbLpZsKS aR8En6+ltikNpTkJQKE4kZ0cyMMjY9Uk02XpcC9gypQrykDmRbh6uGuBvC03NepgCtlx 4YO/MecndCiYtx2vPsvxunkPwia2SfyQ8TwiR0HHtv/Xob9cxyHSmMKsHRdBglARSpte CW7y7rK77Uoof6Eo0swytSna/hn5sBwoKmSC04tGmWuCaJ9tJ+QCzfheemUX8ZxsTLsu Q6gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X34VlG4J; 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 y3-20020a05622a004300b004197f4454a6si5056891qtw.610.2023.11.05.23.11.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2023 23:11: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=X34VlG4J; 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 1qztfs-0005a1-Qr; Mon, 06 Nov 2023 02:05:30 -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 1qztdD-0001C3-It for qemu-devel@nongnu.org; Mon, 06 Nov 2023 02:02:46 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qztd1-00022s-Td for qemu-devel@nongnu.org; Mon, 06 Nov 2023 02:02:41 -0500 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6ba54c3ed97so4305695b3a.2 for ; Sun, 05 Nov 2023 23:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699254148; x=1699858948; 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=ZN+AUq0fMLCJmtXlKU3nsk7QrHFyeF7qawtkUtQVWh8=; b=X34VlG4JT1JSD5fWVYxF4AAkshR+C6d65cnTUczr2W7j/xI2pg3e0Ai+2vebOh+vwo rO/YFUSwoZ1hgI1OmPvXiQOu6MVcJ0e2xBpja+2dLuLaeirzQOyj2ArrETRgdRiBbapO 27ab6I8T0WN96i7qMyoy0AWFjJr+UVEea7pHeIPGyqtse6Ty1tKOEdPUJuGGqxSjcBMb E0q6VHtNtnMC6u+EUEcOw56AffixAcYQgxowlLTEveL0rjzVLrg5YEesw8R6sE8/u2sJ o/9eNCMWJLPCHM32t3nMkvxYsezfx97XO48CVQ8ehIe9fLFq6+lr6XkZXal/XrabxaAc x2zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699254148; x=1699858948; 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=ZN+AUq0fMLCJmtXlKU3nsk7QrHFyeF7qawtkUtQVWh8=; b=OXbMDxj3326L687TKViw1Z6c53utAXyTi6iJkmkBvQVUWCLB3YX+kTY6Skiw7XE+EP WqO8/18O0CJvy1tWpbLdhhza2fJAabGCMhDwUun7uTHwf6uqGLnBvGI5vvWlmO95zP5p dK/yJfBBaO2dMRtJ44ivXZt8bNGCbsGItsG6K/n0BM2/ALyFqI5wHWdIP7fjF7SiFZ1y ilTLM+I4ri4KPsereaihd6TCdwacF/pjN80ZocR+PB6pPrd2AeTIOB4ry1ocoYhPjWWs 7My2RuxS5FbYmGG64thT9RCGd6bzX1Y7kEyt2kwuyp57w0tOcpqQYauIzK0fqHRs0f3U Ku9w== X-Gm-Message-State: AOJu0YxiVuYJK5srdPdclx7zhjh2rqRkuIvJH3nbMGdtwcP+fVREfEz6 t4//eay3QLSIXM9OPYaI/47ke/r7paa0kzlLvT8= X-Received: by 2002:a05:6a20:a122:b0:148:f952:552b with SMTP id q34-20020a056a20a12200b00148f952552bmr38185243pzk.51.1699254148264; Sun, 05 Nov 2023 23:02:28 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id 8-20020a17090a194800b0027d88387287sm5319650pjh.51.2023.11.05.23.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 23:02:27 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: quintela@redhat.com, peterx@redhat.com, farosas@suse.de, leobras@redhat.com Subject: [PATCH 69/71] util/fifo8: Constify VMState Date: Sun, 5 Nov 2023 22:58:25 -0800 Message-Id: <20231106065827.543129-70-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106065827.543129-1-richard.henderson@linaro.org> References: <20231106065827.543129-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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 Reviewed-by: Philippe Mathieu-Daudé --- 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),