From patchwork Mon Jun 26 21:59:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 696510 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3449919wrm; Mon, 26 Jun 2023 15:08:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79fcLOJWzmCVDCBFbW54JFy0dnrnRvX/JEPHtUupNYex8tQQ7lNhwa9dMi4Ua4oiMwcBRx X-Received: by 2002:a05:622a:1492:b0:3ec:490b:ce6e with SMTP id t18-20020a05622a149200b003ec490bce6emr32976867qtx.48.1687817288571; Mon, 26 Jun 2023 15:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687817288; cv=none; d=google.com; s=arc-20160816; b=GtsX5EJrvsz0PB/eAbg6XJyrG4Vr6hfGmhXLPzLJc9aYBMTpJ52+GWmXiynCijufVv 1LuUBoBDezuq3rrFcdLaDg5/6GYX85NdY/dwZ+PUmxiwRebibgAlHpFj/KpPOFmiyk52 F4KqNBAq6gL7EmtCCTwjcucTDkJEVAtBHzWh/PnzcKpYgk2XZILNTbpBUAIRgeXFudlt iiZEg7yjAnB7RVIPGJbPJ0rQrq3zF0NNMKNSywC5fwVM8uXzyS3wlohaAi7dXC+Q8O27 vrppYpiZnEqMMB8F1wZ7KsuzX6zcyIvDv/vLbNsN/zHU+FXowC04KJTuqS026v58SAXm aGUw== 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=3JC9WCIJtw9nwrfN71qlgt4usYXlUperbuOAmE+qnSw=; fh=QFrE1ZLxHwiDzq+QjMH4aYL4CSdlvjm9lWlNFJVs6fM=; b=nFxd4uB6r6qkSUenyK0VRb+OHlBqVGNktBLwWuvZyLFn8e/p25bd2iH+63ZxeL4hJL NFcisBRrhKvvmtV7uNIYKICTGTCq0U6R4bpzNa1iLOXqUykXoA03Q+M0p2U+xZwFUpOQ AJ246ppCpkRbzJcwqmWV3Se8LXbzFmecXB0OsKawrf6whiXxwE4xf/AFZQLWRLO3mr54 poCUZQyqHmjA06Z7vsET8qfPNR7gw1aB+jaboAyBshOlt3o7enwKKjqvmZk5E8iBUOYG W/OmWa8A2B4DOffcF80qmKZOFK1O2FVT+1+KCaP+pEZbsE5ovZjom8pRXayFQji2UaaF jy8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FGR2MZ6E; 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 m19-20020ac85b13000000b0040202e92e64si281990qtw.31.2023.06.26.15.08.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 15:08:08 -0700 (PDT) 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=FGR2MZ6E; 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 1qDuLY-0003KH-9l; Mon, 26 Jun 2023 18:06:08 -0400 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 1qDuLL-0003B1-VA for qemu-devel@nongnu.org; Mon, 26 Jun 2023 18:06:02 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDuLH-000716-AF for qemu-devel@nongnu.org; Mon, 26 Jun 2023 18:05:55 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3113dabc549so5503583f8f.1 for ; Mon, 26 Jun 2023 15:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687817149; x=1690409149; 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=3JC9WCIJtw9nwrfN71qlgt4usYXlUperbuOAmE+qnSw=; b=FGR2MZ6EMI02Ucd5wWjy7V/egqOJMi5nVn1esQiLF+i3ntR1MsFaPfeR/T6DqgZMQp 8SvHKYCOy5XfKti8HjE61pj62sbAD8cQY3/3/R/zWb3Tyo0WkAeDfTjvct4De/4W7MFN k4Kd/DlcjQWAY5ViT8YpQMU5hmlzb4o5aruKis9jJy29rjbc75kkVNb1E3DW6qVfwyo+ qHIX1kHr4t5Xe039oWeBP73xHFLwdvH4TYRtvikgoKSAmdoqNbhUCDBewPLKrlWf2kXw Z+SjYqAWV1nxtgeAZxzds69ykW66sd/7853R7+O/vejNaSkJy9fn5Mn8k6w9WqNBkOY8 PLrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687817149; x=1690409149; 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=3JC9WCIJtw9nwrfN71qlgt4usYXlUperbuOAmE+qnSw=; b=NeOpwqswDEr7B25JJGpuVZXdTxJN8ETXnAR1CU6yQ0V3f11BW0GIT5oGqGgtIbf56m OecVs5xB9Joyo/QtIlrIxa4wV6ivnwOeYYJfhEj+0H7sUylB+OKcRpcZLLKUwLXpzV1a 8JHdBJcylzIxeyjw3ytUTZ3+X7O3aCPidhJcMtYv2KvjkdC/3DUmnasMXaIGzCBrPQFT kFQq9x1gz0J7YyWOvZ5e6NPwYTr9V/zdq90a2yMOdNMPOyZg14Lb6KBTVlgo7iXwDMWz aJxwT4aX33AmrwSCREU74uiE0+/hJ8ZBbfu/Pbkiar7DujybFIKYsUjx4smXIpzaSDYm fI/A== X-Gm-Message-State: AC+VfDy/iKooctmM1GzBj2W0DS8/uvVfMkDl5POBkU73N3nxDvtEeRR9 B4cmO9texxC2ohdJtyFYGxOEYg== X-Received: by 2002:a5d:62d2:0:b0:313:e8f9:dbfa with SMTP id o18-20020a5d62d2000000b00313e8f9dbfamr8144855wrv.35.1687817149583; Mon, 26 Jun 2023 15:05:49 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n5-20020adfe345000000b0030e5bd253aasm8527934wrj.39.2023.06.26.15.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 15:05:49 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id ABDF61FFCD; Mon, 26 Jun 2023 22:59:29 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Alexander Bulekov , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Juan Quintela , Alexandre Iooss , Thomas Huth , Marcel Apfelbaum , Leif Lindholm , Riku Voipio , Peter Maydell , Paolo Bonzini , Bandan Das , Leonardo Bras , Cleber Rosa , Richard Henderson , Beraldo Leal , =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Xu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mahmoud Mandour , Stefan Hajnoczi , Yanan Wang , Eduardo Habkost , Bin Meng , qemu-arm@nongnu.org, Wainer dos Santos Moschetta , Darren Kenny , Radoslaw Biernacki , Marcin Juszkiewicz , Qiuhao Li , Laurent Vivier , BALATON Zoltan Subject: [PATCH v2 23/26] docs/devel/qom.rst: Correct code style Date: Mon, 26 Jun 2023 22:59:23 +0100 Message-Id: <20230626215926.2522656-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230626215926.2522656-1-alex.bennee@linaro.org> References: <20230626215926.2522656-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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=unavailable 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 From: Philippe Mathieu-Daudé Per commit 067109a11c ("docs/devel: mention the spacing requirement for QOM"): For a storage structure the first declaration should always be called “parent_obj” and for a class structure the first member should always be called “parent_class” Adapt the QOM rST document accordingly. Reported-by: BALATON Zoltan Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20230622101717.70468-1-philmd@linaro.org> Signed-off-by: Alex Bennée --- docs/devel/qom.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst index c9237950d0..2828843058 100644 --- a/docs/devel/qom.rst +++ b/docs/devel/qom.rst @@ -26,7 +26,7 @@ features: typedef DeviceClass MyDeviceClass; typedef struct MyDevice { - DeviceState parent; + DeviceState parent_obj; int reg0, reg1, reg2; } MyDevice; @@ -147,7 +147,7 @@ will also have a wrapper function to call it easily: typedef struct MyDeviceClass { - DeviceClass parent; + DeviceClass parent_class; void (*frobnicate) (MyDevice *obj); } MyDeviceClass;