Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp454382ybt; Mon, 6 Jul 2020 13:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVU3pX5S8+v99W+u/72h4iy/hXYeC6rWsrvDHKvMopp31q2kOufI36w5N714sSDD8g16ar X-Received: by 2002:a50:ec93:: with SMTP id e19mr30662168edr.254.1594067500557; Mon, 06 Jul 2020 13:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594067500; cv=none; d=google.com; s=arc-20160816; b=OyaGLc0/xpqBk9WCFh+dyHx/wW9tfuupHwfbRZHQOuyDQ7vGlAVtHwWDwLGZCrMvCG tbcZio3z9q6dtWvPbT2dZKGs4ksdsLw0r8+Rz51+sy9MBegcD0qnD1geZVW3+FVuYW2p w2+Rds2p0kNYCaXqEQz9Yd64Kg5wi3fUoG7ggZrQdMVqwVJuaRgab09SmPzrVInlflSl O5EZkXYwDX7rCmsqYpfnkIQRm1HhvFzkSkClVeGHLqjGbbMcpj9XgvwWyTRwbInsAdZJ 0d7+D7r4MPiKSyyDCykoLRAbEumrfw9WbkFjhA9WrxPonb+Vzinjp+AlbMfMIl2XEov8 x1ug== 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=ZJQi4bBW7EgkFPyhUmlU/Fy+RBHICoBg3XijNABB6+s=; b=wK/LCag3W1uCqwuZtwT1z46U/nhlEzaHYbwtSojgMOcLEi+ZgGcRU+0UktnucMkWBb obL2kl0H+aMFHFRyqxTLGev7u+tA7B0l7BHt8Pv4DqKo0O7tMV+guM9wkKEfykb3G7hE BIvHia0cHI4jYTG6NHiqCIUryF1Rtc4ZxMjaAsjjke23t1Vif47xuFdgh1qByiu49mQ3 HJYs1v4xL093Q05rELpmZ2ML2Upz4U67z/lMsYb7QJtj0BKZa64PSWaMlL+lPcVCYa/G NGGSiqlrYcFp2CNmkVfvfms7dNCbnrA6lZcgqaq7J3+556IQ0R/ch8iE51GULzx4XxQ0 F5pA== 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 bx7si13856022edb.150.2020.07.06.13.31.17; Mon, 06 Jul 2020 13:31:40 -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 S1727124AbgGFUbG (ORCPT + 99 others); Mon, 6 Jul 2020 16:31:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgGFUbF (ORCPT ); Mon, 6 Jul 2020 16:31:05 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF8BBC061755; Mon, 6 Jul 2020 13:31:05 -0700 (PDT) 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 5B81F2D6; Mon, 6 Jul 2020 20:31:05 +0000 (UTC) Date: Mon, 6 Jul 2020 14:31:04 -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 v2] Security: Documentation: Replace deprecated :c:func: Usage Message-ID: <20200706143104.48fa2bd1@lwn.net> In-Reply-To: <20200706184956.6928-1-puranjay12@gmail.com> References: <20200706184956.6928-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 Tue, 7 Jul 2020 00:19:56 +0530 Puranjay Mohan wrote: > Replace :c:func: with ``func()`` as the previous usage is deprecated. > Remove an extra ')' to fix broken cross reference. > > Signed-off-by: Puranjay Mohan > --- > V2: Remove ``quotes`` around function names > V1: Change the subject line and remove deprecated :c:func: usage > --- > Documentation/security/credentials.rst | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Documentation/security/credentials.rst b/Documentation/security/credentials.rst > index 282e79feee6a..15175b11336c 100644 > --- a/Documentation/security/credentials.rst > +++ b/Documentation/security/credentials.rst > @@ -453,9 +453,9 @@ still at this point. > > 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 > +membership. In practice, this means groups_sort() should be > +called before set_groups() or set_current_groups(). > +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. I've applied this, many thanks. jon