From nobody Tue Nov 26 22:38:55 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=1703885471; cv=none; d=zohomail.com; s=zohoarc; b=A/pYgZZsyuL01PNCe/ZzhYVSXMyWd6wxcB0l/Fhpj5qLzNIYfT2LAAsqqf1ngxaN047q00GndhcI49zbgUpP8HIPvANVIAxjgOWw50007h+2qjeR7n0+1P05bovpWRvYMDwIUsuesnbabmEVW495M/zBHnt/iGRo6t4dyWb5fao= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885471; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=M2Xo1Swghl855R8AX0ytJsmYmGWmMhQtAvSG9IogLkE=; b=nlXMM+swbUpKNETkCZoG4pJ1ybTMJojzbPDSxke8Wi0FKm9lCnivm0VXPzbFy4KqXSME8slBblVPHcae5nuLNR+p9V8kueYN6ngbxWnKmAXWPf5hmWyVcLA3jrInJemHcIBd9Xv02yZopJdyfLOIYphL4OUtKqo5uHsmbFve8t4= 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 1703885471600285.31311749026383; Fri, 29 Dec 2023 13:31:11 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKQO-0001bU-Rx; Fri, 29 Dec 2023 16:29:48 -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 1rJKQK-0000yt-Dp for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:44 -0500 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKQI-0000S4-Nf for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:44 -0500 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6d9e62ff056so2713906b3a.1 for ; Fri, 29 Dec 2023 13:29:42 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:29:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885381; x=1704490181; 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=M2Xo1Swghl855R8AX0ytJsmYmGWmMhQtAvSG9IogLkE=; b=jS4tDVXTWQagODUMNPxbosJTnHS4kqt+xcATcHKrJq+eLjOj5M0rxy0ya664K0rxCf kLP9yGGZddN3QVH0QgDGiQshHveFxDLnbaLoBwmOYD393P+sPqSObtlrWnVjP0ZFGU8m iRMAxZAbt078fE1N3+sAKbYLAR+9P6lqLkDo0YwS/9qxgEiz/KfWVGkUASLECf1GfzC3 7evPUJUt/Hkqz1fms8dpXxWSkneSRSMuRfBuSM0M7RMF6IPQYlncEBFFwWAv0sUWtRLT gex5u7WBgrmpw5bonDHV8kXjypgLG1PpWPbhPwci78ZEM9V69aAeLW1gd0bUNxfvd2oo 3A+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885381; x=1704490181; 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=M2Xo1Swghl855R8AX0ytJsmYmGWmMhQtAvSG9IogLkE=; b=kguplRSkhHZ+JARtV4b7q1KNpzSfWsBcnd6OTWjf5WDC7GtLqMIlu23ta5XU0YoRDC GngbNs3kNlkbDdW/FjlboY2CoMFhv3lFKdCw7eGm9hWg9bBDty4WgEy7qUpR3IPzoImp FzG8F+hLBeF8iu5hIgFqBTYSpIwJuAfJtJFQvCcsXdWwk1HO/oX9bGZTG28IpzoltBH4 XsPwOBPPnEu7ep3IXRn+dDLRqvBzEuHBBo7fYdMNc33UkyPmIaAs6d7v6i+zuTamDmLQ 5us2yzmpck3wbwQiOUC38YRt2H1IZyngXc8KYKCdr5hoT8wixkXxtStZNXLMNLuM5c8w Qq4A== X-Gm-Message-State: AOJu0YwCZDUJOlGnQAbRMs8RGinXMicZKPRNc8pY1AWhdQgpDSHlZa4Q Vk0JJOtI5tMCP6Ma36SWUlm4bw2AXGIcmcQjJfvAKjxcQTQFKQ== X-Google-Smtp-Source: AGHT+IGooGYi+lOHhJ6QnGkcxdcOcxFlipI5Nzl+k39crz/nbuttOHH7esIov5UHNoUw6b27jV1bqA== X-Received: by 2002:a05:6a00:84e:b0:6d9:bd17:1653 with SMTP id q14-20020a056a00084e00b006d9bd171653mr8840496pfk.37.1703885381277; Fri, 29 Dec 2023 13:29:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Juan Quintela , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 71/71] docs: Constify VMstate in examples Date: Sat, 30 Dec 2023 08:23:46 +1100 Message-Id: <20231229212346.147149-72-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-Type: text/plain; charset="utf-8" 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::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.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: 1703885472755100003 Reviewed-by: Juan Quintela Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-72-richard.henderson@linaro.org> --- docs/devel/clocks.rst | 2 +- docs/devel/migration.rst | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/devel/clocks.rst b/docs/devel/clocks.rst index 675fbeb6ab..c4d14bde04 100644 --- a/docs/devel/clocks.rst +++ b/docs/devel/clocks.rst @@ -502,7 +502,7 @@ This is typically used to migrate an input clock state.= For example: =20 VMStateDescription my_device_vmstate =3D { .name =3D "my_device", - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { [...], /* other migrated fields */ VMSTATE_CLOCK(clk, MyDeviceState), VMSTATE_END_OF_LIST() diff --git a/docs/devel/migration.rst b/docs/devel/migration.rst index ec55089b25..95351ba51f 100644 --- a/docs/devel/migration.rst +++ b/docs/devel/migration.rst @@ -158,7 +158,7 @@ An example (from hw/input/pckbd.c) .name =3D "pckbd", .version_id =3D 3, .minimum_version_id =3D 3, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(write_cmd, KBDState), VMSTATE_UINT8(status, KBDState), VMSTATE_UINT8(mode, KBDState), @@ -294,7 +294,7 @@ Example: .pre_save =3D ide_drive_pio_pre_save, .post_load =3D ide_drive_pio_post_load, .needed =3D ide_drive_pio_state_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_INT32(req_nb_sectors, IDEState), VMSTATE_VARRAY_INT32(io_buffer, IDEState, io_buffer_total_len, 1, vmstate_info_uint8, uint8_t), @@ -312,11 +312,11 @@ Example: .version_id =3D 3, .minimum_version_id =3D 0, .post_load =3D ide_drive_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { .... several fields .... VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription*[]) { + .subsections =3D (const VMStateDescription * const []) { &vmstate_ide_drive_pio_state, NULL } --=20 2.34.1