From patchwork Fri Jul 29 09:19:42 2022 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: 594360 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp1193109maz; Fri, 29 Jul 2022 02:52:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spQJY6ua8M1RFfpWB9a6TEk4BqSqHeBZQgbJWcKo0eC2/9esuP0KYAaY8IpWRZpG7BxqM3 X-Received: by 2002:a05:622a:11cb:b0:31f:e7e:3fb8 with SMTP id n11-20020a05622a11cb00b0031f0e7e3fb8mr2599245qtk.625.1659088327813; Fri, 29 Jul 2022 02:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659088327; cv=none; d=google.com; s=arc-20160816; b=xGx9y6naLWu0g5aeT9THnjS2ScMKf3nmDRbJQixXVXBw/2nZozs2JRdpAHbuMNePtJ 6SwPnFmI1KF+9ZPDfwMSptj9tT/bVvSfude7HZxCv7wAXYzWSg84X9SGA1abImi40uiC mx3m3TeMzBL5XuozYvkY8NiXEHU6XX6VBSz4u5FK8mlhhZOC+TmePaiZe6WVSGdbAE9B CwSyo5/+3gDW3QQ9YpMfvlBdKU2sEZ6/4throoURAHrBzZCPgQcTvnayiKLuV3Fg/NwQ AIYPgjxaMnAD1o99iOG2M1Lqs1KU1t5quHf5vX8gL2VoT/g0zSSYHgRj0Zum1R/WL92T whWg== 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=3+NpxIpzMd8EaSUovyVTudU9VX9fAuDK9cF15HnV4cM=; b=jwTebL7p0o5wT7VKeZ3CIBKoIEu5iSx8BhmfkP4sHmmf5VQyiBNxnoQWWBcdJInlmj wl68tSLcmzg2pi7VR7YDCBx2H4a2kx/QcEz0BsUSktkHUQ+2OTyNnZBqpiLRJY/IwJst 7im+y0Da5Q2kCWkWyGI6FPIHFPFirscZPoYxltmEETGofTpyJ2gSVj6zeJe1DsLgXspO 7q9CRvgVymHeUFsYqPPWFeTpDsRWxP89iJ9lw4utX850Bp/xnAcgEV7xJN5wWStRR1cn X2v2akoR5KzOxNSAJ4kDMHEiBpXk5jzupUWEjM85OYpaFswQcSFXJyvdi2CF6Z1BXS1i R+Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M4HoVgdj; 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 br43-20020a05620a462b00b006af090bac19si1921888qkb.722.2022.07.29.02.52.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jul 2022 02:52:07 -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=M4HoVgdj; 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]:58608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHMf9-0005qs-Ai for patch@linaro.org; Fri, 29 Jul 2022 05:52:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHMAA-0002aP-8N for qemu-devel@nongnu.org; Fri, 29 Jul 2022 05:20:06 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:44634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHMA8-0005u5-ES for qemu-devel@nongnu.org; Fri, 29 Jul 2022 05:20:05 -0400 Received: by mail-wr1-x436.google.com with SMTP id q30so854310wra.11 for ; Fri, 29 Jul 2022 02:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3+NpxIpzMd8EaSUovyVTudU9VX9fAuDK9cF15HnV4cM=; b=M4HoVgdjZjAN8oxiUVLLAXR2iWxq5I0yWDAZVH7Vtsq4FLkS9zy8o0JVtE9CWr2hiE EiL+vf3cq+6PdkHTsBD8yul5m3GvlB/dq/D9H95NMqyTdehAj8fHKvXc1pAZhq6izSfP PgCcMKA/NVVvlUgGps2t8kugeJsulaZYJXnLS8oldT3+K5UpdTKq/MuM7JAM5uz2yZY7 5o+xnUBYpNXT1xBd8BqfvNeRgowKhyZqoruG3DqSt1B2HwRr7rnRcpFvS90LOeTLQjWC nm0yhiixayNuGh9XyXsBcPO8Aca90BEX1wjbm7QbjmXj+TH+l+iSb9xQjdSG9PCqY5D3 HcSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3+NpxIpzMd8EaSUovyVTudU9VX9fAuDK9cF15HnV4cM=; b=P8lsWBrB7as1NfBr/7Hm2zPA4QDTusehYCiCewjwS1TXXCsQHpj419bFiLU1DYI5ek Ka4D0VJqB5RbbapENQK0LDTdpSVotyt48UvpyVF/bJzChbk4df9zYNfsWGvQ5PkAOwoq jYrNOdjY+vfgMikxFnuMERVPoBpe0xVy6XDZN4PGbdo99eUfGLmRj7mptRkiDOh/Yzbq fu5BY2mhX5PNDLZq6kvDC5xaW7vmZ1yfyRIw6vRyMo5+5NXye6O7vXN0iVCVnlTY/Iqm DEBrxGxbsmU4tsQEbSwbUnpGkpi1kzhcLLFbZOfoUwBOva7XOVcPxEeRxmAycWyLMK3s kPTw== X-Gm-Message-State: ACgBeo2c/bR5XB/JFecj6x14tEzbgKSGSA5HFob3lTDJYf9QjicdRXUS hUgE/hPOh0ZYfTxK56jXYlGYqQ== X-Received: by 2002:adf:f94b:0:b0:21e:46fe:bcdb with SMTP id q11-20020adff94b000000b0021e46febcdbmr1711588wrr.143.1659086402362; Fri, 29 Jul 2022 02:20:02 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id m23-20020a05600c3b1700b003a30fbde91dsm8834245wms.20.2022.07.29.02.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 02:19:53 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D538B1FFC4; Fri, 29 Jul 2022 10:19:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, richard.henderson@linaro.org Cc: qemu-devel@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PULL 12/13] docs/devel: fix description of OBJECT_DECLARE_SIMPLE_TYPE Date: Fri, 29 Jul 2022 10:19:42 +0100 Message-Id: <20220729091943.2152410-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220729091943.2152410-1-alex.bennee@linaro.org> References: <20220729091943.2152410-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" Since 30b5707c26 (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros) we don't need the additional two parameters. Fix the documentation. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220725140520.515340-13-alex.bennee@linaro.org> diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst index e5fe3597cd..0cf9a714f0 100644 --- a/docs/devel/qom.rst +++ b/docs/devel/qom.rst @@ -292,8 +292,7 @@ in the header file: .. code-block:: c :caption: Declaring a simple type - OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, my_device, - MY_DEVICE, DEVICE) + OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, MY_DEVICE) This is equivalent to the following: