Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp386184ybt; Mon, 6 Jul 2020 11:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgaJaR8mYa2sHge0yl7/7UlRVhyc5Z5F5OlyO4JMKrilNc3dsvnqzV3t9iVSObN5VhMdfe X-Received: by 2002:a50:8f83:: with SMTP id y3mr15106655edy.257.1594060980417; Mon, 06 Jul 2020 11:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594060980; cv=none; d=google.com; s=arc-20160816; b=Q6Js1uZhllchEPe08kNnRVnzahVR3t3AupqqO26ICTrfwpOl7Qkcx065H1E6Apriyl Sda0Tj0/BV9EmIDij9h7PdGWKImZiQiEXB+E9h/v3DnUUnTYHRPp2wMDJla80UTFBefS fZ4mDNZzgBlnPZngoRtwZLvwbOuEfmo5QpRzrFhWPajlrMVPdGIYxfjjn/899FZG5KL9 gXBRYnn+iCOogIjoTJrtYnxcVJy5xTmgGil/AQhlLuvAP6KacgjFYTZrnELPe9ZVLbAr AeXIQG135xXsbpBBderr9RXkh8eCxW1PC6LkrdUeV1ooDzeh9pjBoAA0QfBNF9V/HL5a pLFQ== 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=5X2Xr+SGq3p3+SBN2GxtJwwK5DTWM2tF+/yVAK91nnQ=; b=Bky5wMFcQAwWOC8p64FhitUC/LQbkuLfNhTb8IcFo6zbhHtz1ClUMifPfEzkVOvWkc mfcTZZYSQx4KzRtuZ/rcik1VUnf/E5/VPLo4rB60arVp0tx/A8jfbBwFG7Ph9hC++tht MtsVhJsH7M+4+XswVhyO6GEc9ns81YtaRwLTpq5tivmXy+IzvPbImaviFqkw+5cAtR1y axt5adVzRzS592hIhBhFymd+yioY0Eb3hC6sFg1KfatlhjpRG4vbSQYsJiEOPUysPGlc 87A7ruhCJ/gNtO4hV1/NASwxOF5lWbdU5DHBd7nN7wUO6Tvhv3KXGpoNSCQvb5aPA3f3 QZZw== 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 do22si16314102ejc.79.2020.07.06.11.42.37; Mon, 06 Jul 2020 11:43:00 -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 S1729855AbgGFSkA (ORCPT + 99 others); Mon, 6 Jul 2020 14:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729695AbgGFSj7 (ORCPT ); Mon, 6 Jul 2020 14:39:59 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7FA1C061755; Mon, 6 Jul 2020 11:39:59 -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 49E5D2AE; Mon, 6 Jul 2020 18:39:59 +0000 (UTC) Date: Mon, 6 Jul 2020 12:39:58 -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 v1] Security: Documentation: Replace deprecated :c:func: Usage Message-ID: <20200706123958.0d9b3ffd@lwn.net> In-Reply-To: <20200706183437.7239-1-puranjay12@gmail.com> References: <20200706183437.7239-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:04:37 +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 > --- > 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..77b534f61c2a 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. Almost ... but please leave off the ``quotes`` as well - just say groups_sort(). Thanks, jon