Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp826840lqp; Thu, 23 May 2024 00:41:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZdzvmrV9aqrQ6MeV/GpQUDqLYBW53G3EqBrWybT44bgMGTjCkJqXuizd4GSEblbjSlL78TQiuEXSBfWS2izgljJallbb6IZBeXPCdgA== X-Google-Smtp-Source: AGHT+IEZgLv/eTWZ7bUwkWC6Yp1kBaw0nhBfPn7dtzIktTEzDlqxJ64KkP6xCUGYSugNaaKNsT/G X-Received: by 2002:ac2:58e3:0:b0:521:f39d:1a8 with SMTP id 2adb3069b0e04-526bebb38d3mr2937112e87.8.1716450059852; Thu, 23 May 2024 00:40:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716450059; cv=pass; d=google.com; s=arc-20160816; b=dkn5hu0qvsRr7P5yFVisVU3yMZgby/vPhaQ6tBAmROLcVJTp6B140yx7IMBvrFR9S2 LJxyw9ebOK9EVIcbNOvYIJh/Jbh/MnTwOo2q2zCSWoxtXtObtimxMjvgN/JK1R5/WOYl NXvs1a076M8zJ4In1JDydIv0wdAJuFZ6KWxsCgPYl6cTBNqk9FR1td7fogvYe9PcYHdY Ep2wE9p778ro5k37hFWnq3h7KaPO1ZbQipCVR7Ya/1Vea2vAZcEY5tyFI0H3fx2zbG5A FdhuyxuBDS+pMoHa1QHRExCeFi9qMHzQrva7n86GaKb/io+RGITfsKQUUGybzl4fN0NG iWnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=A/nmRaQ+me0DBVuDoavJFaIeoM8eob2JHWSZoKS2vAU=; fh=dT7h1to0ZnLe7+U4Ce9qJE6bAra7F3xh27T2tTGEQYE=; b=S2pU83/BRODkAnd0PmIR4MYnXpx328D59miuvqNY/rT+bLyaiGS3q739PUZbOsG7au FUe5tQYdNG+gcFadjskOunCXnVyd3hSjYIOePVzEckPtQgH8XxDXhzHEOURVkgNpM2XR skFeDWGZcDrrZbkXYNdw4whodmrEoxFvJXAzksI/wjAoWVHwL6XXJzJrb1eRdHj86J6/ TO58o67Jd8PbEKWvuGsCKhhrodltusMC4Up7t41588AayYwg4uoAygiaylwyUs2X5ArU FlWlNO2tro0EvFc88+pLkH/4HI0aU8Knrvesx7iicfWKTBxXcYbDG+d/5SSk0CFv+viW Tslg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kwDNTINU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-187105-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be6874si1573926166b.730.2024.05.23.00.40.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:40:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187105-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kwDNTINU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-187105-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 671481F21CDC for ; Thu, 23 May 2024 07:40:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 790F513CA93; Thu, 23 May 2024 07:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kwDNTINU" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 44BA23B29D; Thu, 23 May 2024 07:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716450051; cv=none; b=Ic4Htu/hrYp0jYXaYGobTVreRzyu8jnjdt0E8suZWI+Y9Anq9H6GaCUfc1XtU8dngc5LYKJO95zNE/CnaDIb0yHf4fiRseD768v6z7q7Clq8KowpvKI5vFrvoqk70LML+OFGPSboYWJ26XdZpBknFUS3hgMVkJLXSKmnf+KR8kQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716450051; c=relaxed/simple; bh=E60JJKQj79tarD45vd9nwKOwa8ME/OAuxSXYut6eJNc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=T70QX5xzRUO5xTVLMUtfqhU+TY/LDGd8CsfzSU+wwbrX0Nx9xmBU+kWP1yMrLNZo3UfWEljHoI9zIt7b+WlDrWns/O0FJg/8ihn97SLMjI4XvhqAjhnISr1P4S7eRjvfSyksRMyQ9CtL5wXMDehSVYqifvh6BHoCI/Jbu6spVcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kwDNTINU; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716450050; x=1747986050; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=E60JJKQj79tarD45vd9nwKOwa8ME/OAuxSXYut6eJNc=; b=kwDNTINUslHpY5LFAh1jSENZCjJIqIgG5jDNsFpuG/CCm8b7zkqz8R73 CLK6kuzR9W2nhTOTcHHbQbHGuKMtD5xN4FSLFYHux8SAevyW2PNNgbOq2 sdDeaf75/HHYp+5y8DOAnujxnQsR/dobqI0qfMNDJqCYah6oHwsZ6phKb CwF0BviVUoLCQqjmPQJj94zkHCcyF0ocF3KD+7olwdVkjsP2sF4Q4zTbD 2GdG5EybhhqMF5g0uYsqeENz1EzSl9nCc2VNyQV/sDXxzupNK9GZnh1Cs gE//P54EXu5xS3peIj+Byfalla6ArA7Aa+Q6GSNNHA0kptk0nsBgoPDec w==; X-CSE-ConnectionGUID: 7icMKjkJRCCy1RXQwrC+tQ== X-CSE-MsgGUID: 0m33cdYfSsCy/q1ZUSSXbA== X-IronPort-AV: E=McAfee;i="6600,9927,11080"; a="24156018" X-IronPort-AV: E=Sophos;i="6.08,181,1712646000"; d="scan'208";a="24156018" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 00:40:49 -0700 X-CSE-ConnectionGUID: P9j9i4QGQiuqeLEWiz7LeQ== X-CSE-MsgGUID: 2IJEzLeNSnCCg+yHhEOIkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,181,1712646000"; d="scan'208";a="34184095" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.57]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 00:40:46 -0700 From: Jani Nikula To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Randy Dunlap , Dmitry Baryshkov , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH] doc-guide: kernel-doc: document Returns: spelling In-Reply-To: <20240522224726.10498-1-rdunlap@infradead.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240522224726.10498-1-rdunlap@infradead.org> Date: Thu, 23 May 2024 10:40:43 +0300 Message-ID: <87o78xou10.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Wed, 22 May 2024, Randy Dunlap wrote: > 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. I probably chose to document only one in a futile effort to standardize on one of the alternatives in the kernel, all of which are accepted by kernel-doc: $ git grep -i "^ *\*[\t ]*returns\?:" | grep -oi "returns\?" | sort | uniq -c | sort -rn 11711 Return 3992 Returns 1095 RETURN 513 return 361 returns 291 RETURNS 1 RETURNs Documenting the first two is probably fine. :) BR, Jani. > 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); > > -- Jani Nikula, Intel