Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp369165ybt; Mon, 6 Jul 2020 11:17:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZQ77j2GTtn0glJ95+FARo2Bq4H5RF+b4hOyoGEL1urMuo1Naga7b9SGEAeEOjkFSt8HX0 X-Received: by 2002:a17:906:7d86:: with SMTP id v6mr43130032ejo.542.1594059438334; Mon, 06 Jul 2020 11:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594059438; cv=none; d=google.com; s=arc-20160816; b=J8GKxSdhZbaTx5ipN5Oi6IztFPLm2tMLlT76N7/LWyW/sSISboQmF2x9QE2h8/InOd b67eZ8Yjffryi1AnBYle/GfaP2EUBxKnT9IHz1Ya7bIPxfTGSKWEm7qufMSe1qGvt+GA YUwG65Cl4+07s3XdTOq+bo2QeFsoliEq6RmbxJ1xtCzVqTyW7pIAh+MZGr7JG8R6iS8e 1w8SPCpOZvWGetvmoSIHpleLbKB1NQF93AllZoUin6li8aX/2DxxO1AS01u7584Rj6lM ARL8FPdIncsd0flBMzbDOLF8SLVPMXj5WaaJW+cDflYOsNrStBdOb9GvEIGcxSYqu4Kb uBfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=PqUc5AnVOiR3mwlFewgcqH/FyD+auXMHmywHo5cQVtI=; b=N70w6AwaUDXeszAh0y0wzjNjSEpGbyZMC1OCLVbDcmBLtVplxqOW1iffRWzb++rMlj 3jzVMltWfhaWWi4WYtqh/qzfK4Whadh36VJAuPYHLmM/nabbFpINBrMxHBUKY2rz0toN jYJKBrBzIvc1uROIajuvNDNuYpzpj7PLEYVVqltIswjSu7Y151xr1Om02EypNzbCeDii uWLfz/U43LdFwXHafUV5kLfHYdn6sqn+p22t82g9tGqvm4d0RtClWFD4pVv7BooI0cbq BDDqSKUkdp8p8hiw7M/a916XFS5p7gcYzDtUftNdLRp1LghEOr0n1DXt+fZY43N4hhbJ TVbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 60si14696247edp.566.2020.07.06.11.16.55; Mon, 06 Jul 2020 11:17:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729747AbgGFSOJ (ORCPT + 99 others); Mon, 6 Jul 2020 14:14:09 -0400 Received: from ms.lwn.net ([45.79.88.28]:56586 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729569AbgGFSOJ (ORCPT ); Mon, 6 Jul 2020 14:14:09 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id CDE0A2AE; Mon, 6 Jul 2020 18:14:08 +0000 (UTC) Date: Mon, 6 Jul 2020 12:14:07 -0600 From: Jonathan Corbet To: Puranjay Mohan Cc: skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Security: Documentation: fix: `make htmldocs` warnings Message-ID: <20200706121407.6c24f537@lwn.net> In-Reply-To: <20200706180010.29032-1-puranjay12@gmail.com> References: <20200706180010.29032-1-puranjay12@gmail.com> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Jul 2020 23:30:10 +0530 Puranjay Mohan wrote: > Remove extra ')' after function name to fix warnings. > It solves following warning : > WARNING: Unparseable C cross-reference: 'groups_sort)' > Invalid C declaration: Expected end of definition. [error at 11] > > Signed-off-by: Puranjay Mohan > --- > Documentation/security/credentials.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/security/credentials.rst b/Documentation/security/credentials.rst > index 282e79feee6a..d51e42b92395 100644 > --- a/Documentation/security/credentials.rst > +++ b/Documentation/security/credentials.rst > @@ -455,7 +455,7 @@ When replacing the group list, the new list must be sorted before it > is added to the credential, as a binary search is used to test for > membership. In practice, this means :c:func:`groups_sort` should be > called before :c:func:`set_groups` or :c:func:`set_current_groups`. > -:c:func:`groups_sort)` must not be called on a ``struct group_list`` which > +:c:func:`groups_sort` must not be called on a ``struct group_list`` which > is shared as it may permute elements as part of the sorting process > even if the array is already sorted. So this is a great fix, thanks for sending it. That said, there are a couple of ways in which this fix can be made even better: - The simpler of the two is to change the subject line of the patch. "Fix a warning" is almost never a good description of what you're doing; what you are actually doing is fixing a broken cross reference. So the subject line should say that. - In this case, though, there is a much better thing to do. We deprecated the use of :c:func: around a year ago; the docs build system can now do the right thing automatically. So a fix that would both eliminate the warning and improve the document as a whole would be to replace every instance of: :c:func:`function_name` with: function_name() Is there any chance I could get you to send a patch that does that? Thanks, jon