From patchwork Fri Jun 30 18:04:10 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: 697981 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp598003wrs; Fri, 30 Jun 2023 11:16:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzKvEJxMKoT6z3Cos0N8LVRyJQ3LrbZZq1Tng0t8TBksV3G2roFcSls0AF1/vRerxwmZTg X-Received: by 2002:ad4:444c:0:b0:626:3a98:95a with SMTP id l12-20020ad4444c000000b006263a98095amr3456718qvt.22.1688149000352; Fri, 30 Jun 2023 11:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688149000; cv=none; d=google.com; s=arc-20160816; b=kAyD1kOjXN5E6ow79yWl2cdqyzMmWjWPvLGMIDypMKTATkBD7vcs7K09lqn7FZtRPk uvjVoz0z6tnxAf6tRXjGsaXeIM5x20w+SDniLlGFMo/O5/Ct0LJcJdiwu43SrqnGmjUc XPtjx4tr7iH0o3ncVscIl59QGpPWh4kuEVEB7mwb06mv863O0YYzOkdJlPI6MZ14yxne dd568jmBGovAkoIFOTMbRb0PDfQBqhkL7ECVLMW26FUIzunNA/UyllEv7b77FYiD3Ycz fnsTbWlZnSH93l6Q+y/f509IloyABXqARmKD7guL623L5JcqTpNcuoFSo81ttoiqG3zi h30w== 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=GEoTyHpQo3GLIR/onzo+RyhnQxgL/H3zC8sm06HYlis=; b=IXxGWB9EN6qhMK3t0vDmiw++z2zMvgfh7Ff1XaVzSs2zAIjsNLb1RybVzJXHr4OdXz gBA1NO0w2P/Wo5ARTuZsaRw7UDrUf0v3yatZIDGZOUYz3SSLLwGKFKcjvUqIDQFy/yA9 ErRMs81U3/FkMGTpyMeH55mBmjWngoV9ZOh2/yj72IFbu+awA0Ku82EwJcxEJIdmgkW2 Eajfcsra/U2Ky0tapzt9UreUrQdD2Sw57uj2lJorHLGuIRSUml+AsN5iS34RPIMe3jC5 Hm1XYotS6uF+NWBNHpXGiKwpS7KfcVaAbIhYfETLWpxwbGtRD6ppg/1HuRcMKcyjDHVX Gfhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dIC0Zv9/"; 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 ge6-20020a05621427c600b00631f44eb2fasi8187377qvb.489.2023.06.30.11.16.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Jun 2023 11:16:40 -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="dIC0Zv9/"; 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 1qFIcl-0005T3-PR; Fri, 30 Jun 2023 14:13:39 -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 1qFIck-0005Rm-36 for qemu-devel@nongnu.org; Fri, 30 Jun 2023 14:13:38 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFIcg-0003XK-9f for qemu-devel@nongnu.org; Fri, 30 Jun 2023 14:13:37 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-313f58d6652so2428904f8f.2 for ; Fri, 30 Jun 2023 11:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688148812; x=1690740812; 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=dIC0Zv9/w87dJC0fdYzyuSo2cKcLhYfbBjAqYq5V1Q6ZpAVnZ9mVuaZFlJy/ACH5f3 Syw8wQujtkt/V5CBMYUEnBWMoVcgM/BHrg7BwRFUBY7mbZieu2jhVImCGxEXwz8wKCmN Zx14PbBVFzqOsAZNQNYZ1XqfgHBluD67GrpFli5ABqtIvHw2f+omWdhWMgDwG+4fHT9z 4huZ9YQko3HRwTRMqYK6P5KapzJerLuBi94VFJ4OooVQChWQnjSCajxXViDE9PWuGUGS C8ED7K5YxTNilCGUHtgdIOwWBxkgQHvflkTthDsBauWD/8OjhBcFPHThM0fgQlSxB76O agqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688148812; x=1690740812; 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=kLhFwLllLBcABf0FLHFOWJ1JpdPmSLhyETzCroUnu/O3rS3sRt5mN6t6TXWNrmHUGh g7tXrXnvgsQ35HpQ4oNkFRjbFdWR61d/MDE6Wd9GBIZnogpLSqIZ9HAEGLgzvVfOtd76 2iNnMD2uKuQ4tGbEnE4oFDpTpAYyywOy2japdrYcpXHWl8bwv7AmD+LOT3Sf0jd2ATnd xLFfO8hKOOVqoWmoayNjhUEocc/BkLzqx8AfiVfnqLdkJr1awtD51GY2hofuYeYtwHw+ 1mqXXJt/8ANpeK+uTiUVgyvVaAUQR8lDXgH89Z9Mhk4AHIL0qpOKSboZQCPF+PXeozgP dMBw== X-Gm-Message-State: ABy/qLZ2wfkzYUURfoyLDoBRswhKgyXn3LX3u08TEPvUia0MDlkOGB5n sL5Aqr5RlBOZCkBSt/hsZ8LRqw== X-Received: by 2002:adf:df8f:0:b0:314:c99:cd2d with SMTP id z15-20020adfdf8f000000b003140c99cd2dmr3099118wrl.10.1688148812799; Fri, 30 Jun 2023 11:13:32 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id e1-20020a5d5941000000b00313e59cb371sm17576229wri.12.2023.06.30.11.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 11:13:30 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D8BBD1FFCF; Fri, 30 Jun 2023 19:04:26 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Paolo Bonzini , Stefan Hajnoczi , Leonardo Bras , Laurent Vivier , Peter Xu , Juan Quintela , Beraldo Leal , Radoslaw Biernacki , Qiuhao Li , Peter Maydell , Yanan Wang , Riku Voipio , Wainer dos Santos Moschetta , Mahmoud Mandour , Alexandre Iooss , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Eduardo Habkost , Thomas Huth , Laurent Vivier , Bin Meng , Marcel Apfelbaum , Bandan Das , Cleber Rosa , Richard Henderson , Leif Lindholm , Marcin Juszkiewicz , qemu-arm@nongnu.org, Darren Kenny , Alexander Bulekov , BALATON Zoltan Subject: [PATCH v4 25/38] docs/devel/qom.rst: Correct code style Date: Fri, 30 Jun 2023 19:04:10 +0100 Message-Id: <20230630180423.558337-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630180423.558337-1-alex.bennee@linaro.org> References: <20230630180423.558337-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.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 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;