From patchwork Tue Jun 27 16:09:30 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: 696879 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3867383wrm; Tue, 27 Jun 2023 09:16:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iRIw7MxjTGcaoy58Q/kkDVKitKiiZwoD9UP5aju8aOz/xChENC/kCAHCiX1mdqFbrwwyx X-Received: by 2002:a05:622a:13cc:b0:3f8:58d:713 with SMTP id p12-20020a05622a13cc00b003f8058d0713mr42440247qtk.55.1687882571917; Tue, 27 Jun 2023 09:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687882571; cv=none; d=google.com; s=arc-20160816; b=Gj0ooDGBZZMV0uTp+Q8iGVPx1f0U8eVQ2Xn8R4gL54U9kX/7O3twOt2xrPNIAaLeqI Yst+yxK0gA3nN0GG8msogOwvCnpmnC04WeqM/Lg8YzWbtIBZgjI+AzwMCtZg+ZUEMi6L OmRvCGEYtGPNqTLPmVkkPZ7j/DlRo7mQZ8g4bDYiPBgMbFK5WCHI/G3GtG6wAODlz8kf JLX5v68mlrJ25iqArjvuh8u2keraSwLl8lpdPpFTdiJksOky4j6Wto9dHyQJN67xsPwC T+HxNrtkDkP0qHUymT2LwJbYh+AjeOd8WhBF2QOuCkf7CBHAVoosOyrF9nSRnwu15vfA +QLQ== 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=WMhh3kaOyRCa0fFxurcMOAC9HykaTC7L5wxz+EPTDYM=; b=bZv67hN5LC+qlcTA9gUwcxXlAgB0PJzTvhJbKmxk/iKrDt6I/je7+Ijj5slSYiBfbW /9CyoygCG2i4NmFR0GUtkQxOw6oU/gWb2zZKqPmlR7Jux1G8QDF2qkbg68x9GfjS38PB S0kiN96OeSOizY3tsRzKITiQUe369crbG/+hLerYzMOXB88QpgqzMjXfdNWio5gxP+1r rsT2sX1rmmWzujWgsACNvysW1Tpl4GPwv7FtDPFmEg9O1u5mtAodxdb7GTZkXCjucVEH 19RsrHLWH3o8QkDR4WAOJs4YoOM5CmnMu9gimJ0Ka3uHaVg4bfgH42whhoJLyfC2Bzz8 cVMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cQJnroOa; 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 z10-20020a05622a028a00b003f38c9bd035si3136113qtw.782.2023.06.27.09.16.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Jun 2023 09:16:11 -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=cQJnroOa; 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 1qEBMH-000122-Jl; Tue, 27 Jun 2023 12:16:01 -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 1qEBME-0000yo-MB for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:15:58 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEBMA-000896-Ga for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:15:58 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3113dabc549so6452493f8f.1 for ; Tue, 27 Jun 2023 09:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687882553; x=1690474553; 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=cQJnroOavKx8Pi3iD1Ye5zaJPQqpPiCCs9yFwr+io/Tzq1k1aPbKpuG71g7SvrfLjo uE82mjE8RQCXYQA6f3xHuCQCxhvzvKLASsTZx1vN/nOhNHMSP0hK4FzUvDvkkAPChcvk PXoDR4kSYDlUm1HeHkHTT8DeYhRqkOiq5NiIkRg2mvVBcXsTepKg8X+yPUFKbuPaxzJ7 RQmTw3zmErlcG6FTuvpcv9h9GZMuOQkD8+GFHgNkxJENJzdxkpLoPMJ6LFB+2N5Gpqjm kvzV+84L+orzmx2M0AXP9CqSbZrwah7N5aP5WxOMsFXTFcm/VFp+KjcLF/g7h4J6Qpbt HQMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687882553; x=1690474553; 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=OYY+jtS1jlsTtCz/XFWQhSUF/Y7NwPUikLea83LixyVbbEN4nTmQ30lXbk4s4OUJSa iQI/uaJiv4aSNPUM89xpdQtGv6iqL9pnCsaTiC7LB6Nb7JNEr0JohW4/3hLB5qJff9VB c8L2z55WIhuKRBmxYFeJvo91YEiunf23FJgXS1AfI/4euttMZil50jV2U6vV5YAtNiYf 8aSzXQg6+A2OdTAlcW4ny9jl84vQz6UjR6AF7onp6plG6Sz095qf5SYmD3Ma90drUGXe QQUuyX1tD1YOSP7pu9PEGjAiuCATzgeflxiik9OcHaYabT30XTYYT4gV/58LubQ4KMBU jkCA== X-Gm-Message-State: AC+VfDwAS1v29LGgkwYQGLkUFc9x99+JqPX8nPCMMFuVBIvfu1ppcZ6x 5zh2G8hKJ9yvtFyk4wa/+4QXGw== X-Received: by 2002:a05:6000:545:b0:313:ef93:9257 with SMTP id b5-20020a056000054500b00313ef939257mr7900702wrf.32.1687882552006; Tue, 27 Jun 2023 09:15:52 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id r11-20020adfce8b000000b00313f3c11512sm5416736wrn.89.2023.06.27.09.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 09:15:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A9AE51FFD0; Tue, 27 Jun 2023 17:09:46 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Juan Quintela , Thomas Huth , Cleber Rosa , Leonardo Bras , Beraldo Leal , Peter Maydell , Bin Meng , Yanan Wang , Darren Kenny , Alexander Bulekov , Marcel Apfelbaum , Peter Xu , Radoslaw Biernacki , Laurent Vivier , Paolo Bonzini , Eduardo Habkost , qemu-arm@nongnu.org, Stefan Hajnoczi , Richard Henderson , Bandan Das , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Dani?= =?utf-8?q?el_P=2E_Berrang=C3=A9?= , Alexandre Iooss , Marcin Juszkiewicz , Leif Lindholm , Laurent Vivier , Qiuhao Li , Mahmoud Mandour , Riku Voipio , =?utf-8?q?Alex_Benn=C3=A9e?= , BALATON Zoltan Subject: [PATCH v3 23/36] docs/devel/qom.rst: Correct code style Date: Tue, 27 Jun 2023 17:09:30 +0100 Message-Id: <20230627160943.2956928-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230627160943.2956928-1-alex.bennee@linaro.org> References: <20230627160943.2956928-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.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;