From patchwork Tue Jul 12 10:31:31 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: 589799 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5817:0:0:0:0 with SMTP id j23csp138740max; Tue, 12 Jul 2022 03:33:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3i2yN8Pnw0sm/kTPVXWyvKHXfgU3uuPhY5xL52GT8ZG6AxPpLDM45dhl881CC+yQcBoZo X-Received: by 2002:a37:2cc7:0:b0:6b5:508a:f471 with SMTP id s190-20020a372cc7000000b006b5508af471mr14252656qkh.273.1657622012575; Tue, 12 Jul 2022 03:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657622012; cv=none; d=google.com; s=arc-20160816; b=UYJnBvTcUejLEIlek7UpQ+BKWdNXHCF0b+seXH6iQugESBL3WHmq09Z1eZ8rYhoHey R9UrfVXQ7Glj5cMnYl/l1NK7L8E3IBLwvAj+j5qD4GatqPfvV4CgOzMfUbKZQEWnXeun H/y/nubAOnFpkEcAZzod2PDyjKuLAuPSkLUC8L31CNWcJTJYaH99w4Ad54HisWc76SGD GH/0TxQg0nJ9ZLdeoZNIpxGpgFyuC2fPuYTrH6i7xwYBn8Nb+U//qSBvDi0JDA2C1hjE CS1Tcu9C4PDfIER48AcXiWQ2+cFkkpOwyQCZg9x+lBkSJyrZfiUn9wWXg0uLS6McNHRA Lynw== 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=iqLuBw7DZw5qVfMG42Sddy0l8VVTwKfh409n2NZQH4o=; b=T+xtcOoNHuiEUoXTIl2bNsM2DYvQIxuvKphfeooJM9KaN0w93EwzDzGuS9SkoNNXxt s6T2H1mWaJ9hQYcbC2p6f6X5l+ptUD61BxvVh2oRyWwRcmMxcB85XfhyUz0U8AlgWAOd QmZOExIv4QBcurJnqpgiO/hesnRYdc9SnMsV+8nAvPTBSxRv0bfwD/9ZF24rakfbyRnW UNFsA/YPx6I7zdrCcIJKul6ef3nkpG8BGU5casqR2BvqCXS0VaEbIi5GErE+/m4ygf+e Cq2DJtbySKzFG6nz143SunDt8q4AYcp3hROHB0vuBG5XeLgRCFFAB/sXL/S7H47CQkTv 82xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nH2Ww3FI; 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 jp9-20020ad45f89000000b004738912168esi347663qvb.402.2022.07.12.03.33.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jul 2022 03:33:32 -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=nH2Ww3FI; 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]:55100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBDCu-0007td-6n for patch@linaro.org; Tue, 12 Jul 2022 06:33:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBDB6-0007lq-Gr for qemu-devel@nongnu.org; Tue, 12 Jul 2022 06:31:40 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:42904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBDB4-0002v8-Rm for qemu-devel@nongnu.org; Tue, 12 Jul 2022 06:31:40 -0400 Received: by mail-wr1-x42c.google.com with SMTP id bu1so9352369wrb.9 for ; Tue, 12 Jul 2022 03:31:38 -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:mime-version :content-transfer-encoding; bh=iqLuBw7DZw5qVfMG42Sddy0l8VVTwKfh409n2NZQH4o=; b=nH2Ww3FI6KKiTYySxDLmtATvXc9ug9sAuSwTkaPNbMBmz7BMOTmbyxaUJfYA700Jau 2IKaQOBUfqqim/RjDQXH8O9VjEqH5zF+Rx8QZUbhYyHOZZL18+5ubjX3i2qG/z37yn8R 5zbhu4Enq6Jxrp6/X/4mHFa+I00BGwzl3Js2xVT5g6GOjHiqKozXl4NSrkdNMYfcQsQ3 eRZFqUBp++AEm5uT5/FC7wGbjB+B2zNV4rozRaVzx//X8vPHvX8Y7n74nEEtYQbGWyM/ IvCEC9hfkztCe1FAbeF9QeRSkY+NqJ4e6Dqbd5kvT+GHRILhTpHWhQbpNmghH3NnUySQ FH6A== 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:mime-version :content-transfer-encoding; bh=iqLuBw7DZw5qVfMG42Sddy0l8VVTwKfh409n2NZQH4o=; b=JNUAJIimQDFrvkUfatuzO/oMwaRxZP/av9K295qS0kGqQJhIxYNjThREVm5Ow22DM1 XBFmej/zfAAIgkBazopsCYqODa8J/5HJNNGCQDEojZZoKEw62/frvm5xrJMgygzVAMt8 /+XaXbTVZY9JLKhXZSx/f9AqM4gWsIr6Fy7MNqjeX84eeTMuMboeqx8DXuqtUpK46Nq0 qCOL9ET/hdQDhPmU4MBAP5v5rSd1Z0LP+r2I7/BhA9PjRvh3wfi9RDLkH9bDITPgA5O8 3IWUou+h1FCUOypDAixCZc2x4s4M8imLSGt2eT+g86RYibSrQoKUS/0bpmSV3ZExYk2Z WsWg== X-Gm-Message-State: AJIora/k+MNJ4SaQx8+8vUNJc/FNhiRYEenhHIBI/v/hmmmytzQeWRxC DwV6iMgCkX/uLzMKwxAeBtDVFg== X-Received: by 2002:a5d:544b:0:b0:21d:70cb:b4a2 with SMTP id w11-20020a5d544b000000b0021d70cbb4a2mr20929250wrv.281.1657621897132; Tue, 12 Jul 2022 03:31:37 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p13-20020a1c740d000000b0039c5642e430sm8934927wmc.20.2022.07.12.03.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 03:31:35 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4021A1FFB7; Tue, 12 Jul 2022 11:31:35 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [RFC PATCH] docs/devel: fix description of OBJECT_DECLARE_SIMPLE_TYPE Date: Tue, 12 Jul 2022 11:31:31 +0100 Message-Id: <20220712103131.2006653-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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é --- docs/devel/qom.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: