From patchwork Thu Jun 22 10:17:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 694892 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp1313148wrm; Thu, 22 Jun 2023 03:18:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7PHMXmSS6Up1Cs/g+2ldjxab24Ej1vgXQdn8ZEotFX2ksxEbFvIIlcfu7ICSIuiDOl+Z89 X-Received: by 2002:ac8:7c47:0:b0:3f5:1d57:9c22 with SMTP id o7-20020ac87c47000000b003f51d579c22mr24743970qtv.51.1687429102768; Thu, 22 Jun 2023 03:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687429102; cv=none; d=google.com; s=arc-20160816; b=KtRRevuz92IsjqoZlBjDmYaqrdWkEYVw6yK6LwlWAf8gE4Ef8mBPImu+hVhA2WB+Lh y5OolJ1F/PyzSoXUY44z6CHCz+MUj+Y1fe5Zu/ls3O35IQrrpWXUfpOZ4YvXlZsBzN53 9te56VobW4jcmCPGs4109NSOuKppScsF5/O9QdpcKxmH6sSd0YzobyZQ0dxM/53bOi0V eXCrYksumOZpB5UVmpi6ciOnLS3flz7B7F8pw9FA5JbllKzIEcwSnxPBx/0xyGL7y2Y/ /U+SAt2G/FNSfA6t9HH4C2Ec4Sfi64zvUbXXVfxSo0MOnE5fTR4npnIcpweKM+RI+Yid V23Q== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=gfHj/18jEb5HZc5WOL4oeH6nRL+WbriNo612ICdOt40=; b=QYqGJpGweAnGxcRlMFq/ISX1jqjlUaio+9qsoFFXa0f0sjfhZZIjOZPf66NKLB9ex9 GzWcTdW0JgIEWsmqeGuPa/TB/lBPagXs63fqF8LuMDM8cgkaaJ2Gi9I+9bZC7P+I56T1 3Q4N2rSA7JB4ELx4AuE44+tMel+8UGqlpz0LFCOmhMsS1e3QmAh3pWq3b3sy2z1DDNqW oVbUQmwkK+MVLUsUpKlYlrFVqBizO/e2QZMSkn+2usiUNF8eL958NCXKLogCzVpeTIg8 OSHtTrgLhynub1+XJSMHzX/EGpWn0uHWCGGlhFsaWB7padqy0mJKHEPfQvomC9NpX7n4 udFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wxxoAt/Q"; 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 w5-20020ac857c5000000b003f6afc79be0si2538742qta.389.2023.06.22.03.18.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Jun 2023 03:18:22 -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="wxxoAt/Q"; 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 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Juan Quintela , Mark Cave-Ayland , Paolo Bonzini , qemu-trivial@nongnu.org, =?utf-8?q?Ale?= =?utf-8?q?x_Benn=C3=A9e?= , =?utf-8?q?Philippe_Math?= =?utf-8?q?ieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- 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;