From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71453C433DB for ; Mon, 29 Mar 2021 13:56:42 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E3BD36191B for ; Mon, 29 Mar 2021 13:56:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3BD36191B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lwn.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 8C6EB402DF; Mon, 29 Mar 2021 13:56:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b8fJQFxKeOvm; Mon, 29 Mar 2021 13:56:40 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTP id 6DA2C402A7; Mon, 29 Mar 2021 13:56:40 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4F40BC000B; Mon, 29 Mar 2021 13:56:40 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3FC2BC000A for ; Mon, 29 Mar 2021 13:56:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1DCD1607B5 for ; Mon, 29 Mar 2021 13:56:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=lwn.net Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OCCsyEBoWKG9 for ; Mon, 29 Mar 2021 13:56:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by smtp3.osuosl.org (Postfix) with ESMTPS id 8B0716058A for ; Mon, 29 Mar 2021 13:56:38 +0000 (UTC) Received: from localhost (unknown [IPv6:2601:281:8300:104d::5f6]) (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 A17AE31A; Mon, 29 Mar 2021 13:56:37 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net A17AE31A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1617026197; bh=wP5WqP7TpuMhuinSpqX6j4VTxGeZ7Yu9z1jrQzPzyi0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hVhTaW+qcOXhMUPdNSGEV54fHVH4+bhntN6Evj0LLSDi30TYZrzBoKHE/YgH61eP3 4QinjQ4PRKjQUsTMlL0o3khU/W0PmTjsHRi6XLWWdEjUkYOrqs1miZMWJjZnHArjan sPvgW2jc1sULfLqbTIdrJSLvg5x3JHI+s/78CXEog3GUoiDl9p6HYk1BM7GQvJo1a5 RZ6ry7BPfPO+CSrddzM0ykIWOQ6ZOHPot79Rt3N3s2XY5RzbtemN97E0FmlQZjOut0 zMysbnKYsk39sICqO2HAaM5VxdhCYojBBU3W+8DeEn7bCZD+eniEanJ042GJOQQg5Z u/47nwgljIpiQ== From: Jonathan Corbet To: Aditya Srivastava Subject: Re: [PATCH] scripts: kernel-doc: add warning for comment not following kernel-doc syntax In-Reply-To: <20210329092945.13152-1-yashsri421@gmail.com> References: <20210329092945.13152-1-yashsri421@gmail.com> Date: Mon, 29 Mar 2021 07:56:37 -0600 Message-ID: <87czvit65m.fsf@meer.lwn.net> MIME-Version: 1.0 Cc: linux-doc@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, yashsri421@gmail.com X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Aditya Srivastava writes: > Currently, kernel-doc start parsing the comment as a kernel-doc comment if > it starts with '/**', but does not take into account if the content inside > the comment too, adheres with the expected format. > This results in unexpected and unclear warnings for the user. > > E.g., running scripts/kernel-doc -none mm/memcontrol.c emits: > "mm/memcontrol.c:961: warning: expecting prototype for do not fallback to current(). Prototype was for get_mem_cgroup_from_current() instead" > > Here kernel-doc parses the corresponding comment as a kernel-doc comment > and expects prototype for it in the next lines, and as a result causing > this warning. > > Provide a clearer warning message to the users regarding the same, if the > content inside the comment does not follow the kernel-doc expected format. > > Signed-off-by: Aditya Srivastava > --- > scripts/kernel-doc | 17 +++++++++++++---- > 1 file changed, 13 insertions(+), 4 deletions(-) This is definitely a capability we want, but I really don't think that we can turn it on by default - for now. Experience shows that if you create a blizzard of warnings, nobody sees any of them. How many warnings does this add to a full docs build? For now I think we need a flag to turn this warning on, which perhaps can be set for a W=1 build. Thanks, jon _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees