From nobody Fri Dec 19 17:00:03 2025 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=1687429103; cv=none; d=zohomail.com; s=zohoarc; b=F/o0GLmC/5su4Rfuz20R8nkvXH7iOe8/vMIg2UDzLpOuOxofNpSkZd8jpWQeC7nHui0Hg5kDjAjsXG81UTLbx5egsodK2LcRNL8Fc0OUxar50njokIBDYePMifWUonITtfvcVKrZwLMwr0mJwsCPllwhG0VnSwNfe40h0uLYdiE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687429103; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=gfHj/18jEb5HZc5WOL4oeH6nRL+WbriNo612ICdOt40=; b=HsHkji/SRz1RuFLH/ndbdDFK654IJmbAEmplm+M74fKRdr+mbsUh7jHsZwKMC7wAp6lndUWi/Pkmky8lI0/KJ00C7vsqoFi0XngWljAxtTL0PGO9OK+ujn072Xi261vGnzFTwpFevQ+oMOfWJ4lj1XRGVszPTvdWMvjLx2R4Ny8= 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 168742910322123.62779086143837; Thu, 22 Jun 2023 03:18:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCHNb-0008W2-68; Thu, 22 Jun 2023 06:17:31 -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 1qCHNY-0008Uk-Hn for qemu-devel@nongnu.org; Thu, 22 Jun 2023 06:17:29 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCHNW-0003Jb-W6 for qemu-devel@nongnu.org; Thu, 22 Jun 2023 06:17:28 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f90b8acefeso51612875e9.0 for ; Thu, 22 Jun 2023 03:17:25 -0700 (PDT) Received: from localhost.localdomain (127.red-88-28-17.dynamicip.rima-tde.net. [88.28.17.127]) by smtp.gmail.com with ESMTPSA id f12-20020a5d58ec000000b00309382eb047sm6616897wrd.112.2023.06.22.03.17.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 22 Jun 2023 03:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687429044; x=1690021044; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gfHj/18jEb5HZc5WOL4oeH6nRL+WbriNo612ICdOt40=; b=wxxoAt/QkgH4yLm5KGKrK5QqvUPH1o66mxBFggWJmp+4nvu5pwcYaWkOBeR4KZ+NYr Ngn37XQu1i04z6T8CkdKWdCViMcX9WoM7f4Xe2qUEkjMQ0ua9jbjzIxyrpE9TKWwStrH 3KbvMpCmcFIBsIoBCvXMX0qAaiDvTLTwLlORylW/qGSAXSHAq9IX5+TDRWNwcltbuahx Fuv6SpLnnihRqOwNHMIDzOdU6cewDlR/jGqn0EkLnfFt5fLrpkGWbeTCqs6W3zucu9sB h9Sf5ttO8ulbU4peydI1cKxFP5ZwTO4njAa4UFJLTi7APLTI1q27wzFM1TeNAhYWdpfX 9Wow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687429044; x=1690021044; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gfHj/18jEb5HZc5WOL4oeH6nRL+WbriNo612ICdOt40=; b=DJw1T1JeOhS2atc8N5Xjqu28bI7X6ZVWVkj/qoKmbzTBxs1IHj87m+u6OBAm7hxtVs sBgztjPsm8dvKjvnxPoEozlqfEffsQVoRaevJr3HE6EbsldN/3YkXH/ev7QT9lJNqy78 IJKTiTz+H5WV9IfprDbI8EWhatl2SHi+KZWc758VWtil6ig04PYs1Z2QBd+rJFNPa9iD P38cSOT00EFmryC8VLFxHPT+SZ4PnCyGHayzEIWcolE80sUrFrOFBG0NZxhdUk6LI+ll cddWSxFmGPtAQCeBEJ2z7e6WaGaImb1QbkbMGH3+LP02KtuMKDZMVH8CteUXTtvlp/DL t3mw== X-Gm-Message-State: AC+VfDxZfT3mlkj7sBV/r67JCNje06WNVW61sSbnlxR5n4482hG1EpKk hgQokIrxI2BfsTV3x4NP1hnzXkMsR2mBH6TWEg0ZKg== X-Google-Smtp-Source: ACHHUZ7Tfrpkbsb2MfQ5eaRu75/LqZyhhbsOTZ44tcjFtxVizNHncI3gDn93tw/HKHNO28oe/jbLPw== X-Received: by 2002:adf:cf12:0:b0:30f:d20f:f922 with SMTP id o18-20020adfcf12000000b0030fd20ff922mr12943675wrj.9.1687429044427; Thu, 22 Jun 2023 03:17:24 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Juan Quintela , Mark Cave-Ayland , Paolo Bonzini , qemu-trivial@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , BALATON Zoltan Subject: [PATCH] docs/devel/qom.rst: Correct code style Date: Thu, 22 Jun 2023 12:17:17 +0200 Message-Id: <20230622101717.70468-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 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=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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: 1687429104770100001 Per commit 067109a11c ("docs/devel: mention the spacing requirement for QOM"): For a storage structure the first declaration should always be called =E2=80=9Cparent_obj=E2=80=9D and for a class structure the first m= ember should always be called =E2=80=9Cparent_class=E2=80=9D Adapt the QOM rST document accordingly. Reported-by: BALATON Zoltan Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- 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; =20 int reg0, reg1, reg2; } MyDevice; @@ -147,7 +147,7 @@ will also have a wrapper function to call it easily: =20 typedef struct MyDeviceClass { - DeviceClass parent; + DeviceClass parent_class; =20 void (*frobnicate) (MyDevice *obj); } MyDeviceClass; --=20 2.38.1