Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp646814lqp; Wed, 22 May 2024 15:47:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV388yjWSxj4r2mmYaQEvwzw/bCaxsI2nVn6APMTwrJbYGoXuLrTILfnSx5kc57hgG4TUqepcuEpkf24go+2bnE9aadELmVf425122t3A== X-Google-Smtp-Source: AGHT+IHSkEbA/iT8qMKV3CJQLE8rorXDM06rcw47tJ/A8ywF42vEsvXECbmARgPK81fNHBRGBxsu X-Received: by 2002:a2e:9245:0:b0:2dc:bd75:41ba with SMTP id 38308e7fff4ca-2e9494f48b6mr22551711fa.27.1716418064061; Wed, 22 May 2024 15:47:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716418064; cv=pass; d=google.com; s=arc-20160816; b=d70/Of9Ku3/rTtQ4lwegMheYYX3oQtU9XHkevvh2PaCSbzf3LxL5NMBHxEKV1sPdYl mLqaDlsXktpJe3ampfCNtkUev2ZLRiGCtgd2cED+8Rg16ixFjcWmQa37Z6ZIS7LBA1IS a2lRRUHpk6ofLjRHy3qaBekB1p6l3hK0CfrH7mem+scxVgkWWPaGGMoWmCiORY58AMs+ Lzu9gwgrvSFq9XLgcboL1LM15nhWuxN/cp4V3oDWv8gMcBUUP+o4k5PBBOMfxEHQ/xmw z3eyc5MZge3dec/wjPGq51h9Nue9DbqIduDkU1RasSHla6asTLqM4yohceeMsOE7xvnN ISkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=B60f+SkB/fbDXXMGfWZNp//l2iDgy3hxtoJM7FOinzM=; fh=uq5sGrhzocUtujyjgMOyv8t7IMgsGf+uM4NGTYIZrw0=; b=Itnm4yH9c0pWRoOpKPIWyJ6J+r5LU0KbobdobK82Ce3PyD6u9rhULuTfCk8kADvyiY 8n9GmHvmHncYR73h067vceumunsW3WQLft+8MIHMg7IvW0BPAtGgLWg6I0I0gDqKSZi+ +KHIQ5NWGb+NT9Qv3JKXvqyPkz4XLv2GSx+3gJX3gJ9K3NRGTaAWeOJESDFNKAnQ1M5H wZgxPiQhRhWzQ58+aHyQ9HVOTwl7firqakTeT2honW/kv/1Jne3jooM078KDZ38U+8QA KQGzj5Pw62qMLJR1LQLmPRLJZOUfBpUMJ0/1lOzz+ZHB5Ffy6df31arkRq4qvNDFbk+6 /xGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Yo82asRq; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-186789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186789-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ece5ca7esi9332016a12.498.2024.05.22.15.47.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 15:47:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Yo82asRq; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-186789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186789-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BE4601F21ACC for ; Wed, 22 May 2024 22:47:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C88C21494A1; Wed, 22 May 2024 22:47:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Yo82asRq" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3A3C43147; Wed, 22 May 2024 22:47:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716418056; cv=none; b=E4p1dc6a7PeH2XWMyTKQZvOF01YT8XPR9F15lYKobiwzsZyEF3oIK2SwusR1Nx8CiDOUxtpu5mmxuxHkgznzh6wkmTI3RNljfKNdqX4rtCnGWIPFjfNHnyE1eqaVzhxcxii1WQZCIY68HGiHBRUmFviF9UEIHwEsUqVU8C2lL4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716418056; c=relaxed/simple; bh=1tQYnuBW0tCO/M95+qVez0oXwbjCD36YNuqAKFKPkjo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HVBC40/lG7c+MGhPmpD55kpmUOO6qYG8AwSyaOS4lBtLXbJXpL/MIHLwvFTvTwGW0A9qgD0xdD69hS3u/Zn4Z68b7YQFs41mN0TGVJwr/bA8ln4hbS0DLg4rCTEWqNsEqy7vWpTUwdunmUKtJzr2PUE5Y8qChRNa+Fx8Sb6HyXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Yo82asRq; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=B60f+SkB/fbDXXMGfWZNp//l2iDgy3hxtoJM7FOinzM=; b=Yo82asRquTYyeclv+7EF8LGaaG pMOvX1SPnVTWRJLyLNRwEvL1LB47kuJjOfHrPGWXaoFmKgpvDgclHhWx5EKbO9VTeVtOM6jYUTYxQ Fc/za1ohTH4HajpKvuWGpIAPf0aGYy3YnqBs2N5lwv1QCGvZuemQgGlMw+uiJuH9YLMy74pVmh3c8 8LxUAfugpEegadeIa3zBxgen+fIxXcNKlJ87/yNW7Rfu583c08VcMpWKc2jbHiK6Vj47furftaPbt pU0mQIEDOOydrrTMagpCZF/me1XkNw7eenGzWIw/dNXxa/x7I+bHXihApY0e2yO3c9Mub/I9TlcQD yXts3QyQ==; Received: from [50.53.4.147] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9uk5-00000004K9L-1jjb; Wed, 22 May 2024 22:47:29 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Dmitry Baryshkov , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH] doc-guide: kernel-doc: document Returns: spelling Date: Wed, 22 May 2024 15:47:26 -0700 Message-ID: <20240522224726.10498-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit scripts/kernel-doc accepts "Return:" or "Returns:" for describing the return value of a function or function-like macro, so document this alternative spelling and use it in an example. Signed-off-by: Randy Dunlap Suggested-by: Dmitry Baryshkov Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org --- Documentation/doc-guide/kernel-doc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst --- a/Documentation/doc-guide/kernel-doc.rst +++ b/Documentation/doc-guide/kernel-doc.rst @@ -143,7 +143,7 @@ Return values ~~~~~~~~~~~~~ The return value, if any, should be described in a dedicated section -named ``Return``. +named ``Return`` (or ``Returns``). .. note:: @@ -337,7 +337,7 @@ Typedefs with function prototypes can al * Description of the type. * * Context: Locking context. - * Return: Meaning of the return value. + * Returns: Meaning of the return value. */ typedef void (*type_name)(struct v4l2_ctrl *arg1, void *arg2);