Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4461124pxb; Mon, 21 Feb 2022 22:19:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGpQKegyJgJ0ezFDpftQeSVk5szvKK5wjHX+dA+DkSmUuZMhcI2vBcUhou6YMf0DKRx0sC X-Received: by 2002:a63:e249:0:b0:36c:4f1f:95e0 with SMTP id y9-20020a63e249000000b0036c4f1f95e0mr18828260pgj.381.1645510761748; Mon, 21 Feb 2022 22:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645510761; cv=none; d=google.com; s=arc-20160816; b=kbCoHbASSetc+HUBR0jbzaMjL+uYbC3V/q0gZjj6ok8lU8irD5uV/tRJu6m0h4C96r uSx/H56nY8k44BP5irVt0+ex/bGVW9XafC26DNnd0nTZ3D5z6U1dEi7gCmke2NCLmsit sUUOGqlUAZAgDR1tSB0/4tDR9dcAI2OYRshwUCmU7L+OqoJxKwWDx6r1LEOm3nX0ZmoD YaUcV9yDqCtvSFuHb0XcR9rTnqwhUsteyBrBS6r4D9m7/e4oLh0o+SqoR7cSJLRYsFjv g3S+5DzyRkMkxdxXM0tvvcsPN2iTV/cV1MpJqM7Bd7febleJ2m1MkrvL+txsvxlN2W/D qeyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9q3yjh9uLyNjxrhUerp6IhTsxF93kG7KHpu4Olz4eNE=; b=OCpMl+Trv/aPn7EKFjHu2BmenP/XuKlAcTdgbAapNPfeZBlTOLKlo5rXXMK18IhQHR dwepst0N3U1LBfBacIS3lUSbcWyBA5hVxEF3a3WfGyboJPFLGigbe6fQXKqE84rCVR8V girfgWCUvwFQEEkngTjE2m6dyahQxYhRgeu2U/0ytXsdzeFhmQDItCLVioKHjsORfeEn suLc6Uptzbl58BECGj78VdaYlm6QdVFQYjSukU4VU3ZFGKvMR/kDvv5FkhvH9kpSDzzc HgIAafvtNsuAcEMpeyPE28AlKO5VbbJAu88MVO6QOeB+CATAAZgRqsE5K27N0kaZ4QcV w8WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=jOWoVkAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lp15si1368617pjb.135.2022.02.21.22.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 22:19:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=jOWoVkAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 649A4C3350; Mon, 21 Feb 2022 22:10:43 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230176AbiBVGLA (ORCPT + 99 others); Tue, 22 Feb 2022 01:11:00 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:54264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbiBVGK5 (ORCPT ); Tue, 22 Feb 2022 01:10:57 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96AC6C331C; Mon, 21 Feb 2022 22:10:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=9q3yjh9uLyNjxrhUerp6IhTsxF93kG7KHpu4Olz4eNE=; b=jOWoVkAQBFZORRr8wm1BxB7JNG DN2pz7usUpggsTA5poxAj943t3ZFbTfMBTJcSJJ/XIUVpTSc+5LPf27xPNqMapVDkckno2so6rlih izVuubkI7ueepLIc3Qdz0gGN0jZBPAGq02VttXybRBcT54EkDilw5lP1bhJMOYxJd1yUtmumjsjRO 5abU/wkABYXFgq4bzeg6J1Y4QqyTKE8G+81GOHPTk7T0h/TLpogsKQm9kapAw2XqUKd9gJHvJ2Cps 2lixE0FoSlOqzNhyLERg0E350+Sg+oEnrKBtU21C68p/SOGdznHoq04MDYdDXDx67v5ItTHdSjfRW /BIjYLLw==; Received: from [2601:1c0:6280:3f0::aa0b] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMONX-00BsFN-91; Tue, 22 Feb 2022 06:10:27 +0000 Message-ID: <7852b505-a65a-6cdd-29a8-3bc966dfc750@infradead.org> Date: Mon, 21 Feb 2022 22:10:22 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v4 01/11] scripts: kernel-doc: Add the basic POD sections Content-Language: en-US To: =?UTF-8?B?VG9tYXN6IFdhcm5pZcWCxYJv?= , corbet@lwn.net Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220218181628.1411551-1-tomasz.warniello@gmail.com> <20220218181628.1411551-2-tomasz.warniello@gmail.com> From: Randy Dunlap In-Reply-To: <20220218181628.1411551-2-tomasz.warniello@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/18/22 10:16, Tomasz Warniełło wrote: > The NAME section provides the doc title, while SYNOPSIS contains > the basic syntax and usage description, which will be printed > in the help document and in the error output produced on wrong script > usage. > > The rationale is to give users simple and succinct enlightment, > at the same time structuring the script internally for the maintainers. > > In the synopsis, Rst-only options are grouped around rst, and the rest is > arranged as in the OPTIONS subsections (yet to be translated into POD, > check at the end of the series). > > The third of the basic sections, DESCRIPTION, is added separately. > > Signed-off-by: Tomasz Warniełło > --- > scripts/kernel-doc | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/scripts/kernel-doc b/scripts/kernel-doc > index 3106b7536b89..c8fbf1d3d5aa 100755 > --- a/scripts/kernel-doc > +++ b/scripts/kernel-doc > @@ -16,6 +16,31 @@ use strict; > ## This software falls under the GNU General Public License. ## > ## Please read the COPYING file for more information ## > > +=head1 NAME > + > +kernel-doc - Print formatted kernel documentation to stdout > + > +=head1 SYNOPSIS > + > + kernel-doc [-h] [-v] [-Werror] > + [ -man | > + -rst [-sphinx-version VERSION] [-enable-lineno] | > + -none > + ] > + [ > + -export | > + -internal | > + [-function NAME] ... | > + [-nosymbol NAME] ... > + ] > + [-no-doc-sections] > + [-export-file FILE] ... > + FILE ... > + > +Run `kernel-doc -h` for details. Nit: $ ./scripts/kernel-doc -h says: Run `kernel-doc -h` for details. > + > +=cut > + > # 18/01/2001 - Cleanups > # Functions prototyped as foo(void) same as foo() > # Stop eval'ing where we don't need to. -- ~Randy