Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2171698pxf; Sat, 20 Mar 2021 06:43:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfucmsQtYmsZuV4VAzPu9jR/x+1QJx9+D4snV9P7YYi4NY+f+nCiVJ/svgQALcA0f/qKSa X-Received: by 2002:a05:6402:142:: with SMTP id s2mr15505831edu.2.1616247807556; Sat, 20 Mar 2021 06:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616247807; cv=none; d=google.com; s=arc-20160816; b=r0Gmr77SLoBIAZTFAHYcyLpKSeJ7PtbeG6UAHYHP+iMZPeu62AhLI0c/ab+LfG0idl wqZr62uQG6Sw9mcDNNNQb5ZadInDzQA6lrtFbkowxHWWr9lJ1cYr+EVa949Z7PbNApse aNDflUYfjAKzc4MvrEQIWRiQr4eyZD8WwIzhlFyAtgf3qeQRC/CbrtjE6KWFRmNX3gfF RaqSOOm0xXQTDW/QAyjQdkXkUefS+RKlbQMBlpUn+6FVz02gneh3Xexv0Ia/jaMZaNyk A2tzX4JLwBnXvQSbC8QQQywdNlh5XCYa057Kq+4HprOuyBxtO/KYJHAcxhxFaLY42q9G FG2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zel7VqglAbcHE+3PfYSn3C2SSRsn+gUENwKUKP8d3qQ=; b=fRAoiH+1MyijBSkcrSb+zfN+3nSaPP2c/ZKXu5jG0jCsZ/jWtmeivwdV3Zo1w8AtXm UPiOkq4N2fYfv/uwjafy1XubTfpleaKsjCFkUroGGC5otDLd+/JajqT2d9ndI0efoRcQ 7IR9JygIipe3MMNzON05/I+CQJBfXzSQ4/jI0P18CqVOZsbf6pIPlPcGQGFr7vBB7X0R a9ybFwbF4pd6uxkdte1ddb5sj0dL4zsRQo9937MKkz4ivERgqZXEtT9rwHHYNj3mBuDX 9WlTqrrGc9NM6ymz1CZfuWygNvA9IpcP9QY8sKT6WO/KVDqPJa6WxViPtXDJKrwz215b wv4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q849W2hb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si6800959edv.569.2021.03.20.06.43.04; Sat, 20 Mar 2021 06:43:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q849W2hb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbhCTNd2 (ORCPT + 99 others); Sat, 20 Mar 2021 09:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbhCTNdN (ORCPT ); Sat, 20 Mar 2021 09:33:13 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 367A3C061762; Sat, 20 Mar 2021 06:33:13 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id w11so4261346ply.6; Sat, 20 Mar 2021 06:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zel7VqglAbcHE+3PfYSn3C2SSRsn+gUENwKUKP8d3qQ=; b=q849W2hb8iEUQSYVDml8xNerfLqjVM6pFSoaH9UQvE023n9zur+gEmAzmxdGYuZlu3 unuM06eYUZLjfYekvNf+Gbe3I5TL5Jn1jGdFjX2nwWtJxqdqcohdRX7/L3qUROKxQVx/ gtLCQGOmchV/YYXcsljpbSGQ0o2UO+tdwsaK581Z1mHe2NeiaMnO6SeNpEtILdGg7mAf TLPbLqCUooDmf4eGHK5mZNpdyacAnSy6tepkUTgTANu7nDJoWEB6eaIz/fAb0jtgtoin xVOeBpPdzYIf+KJua9VPW5pJD6zkkUwXEVgyzfg3dLRuRtemppPnwsfJF2ROoEz0BIMw IVzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zel7VqglAbcHE+3PfYSn3C2SSRsn+gUENwKUKP8d3qQ=; b=YWIrJy4bq20OibGGPkSx7d38dZ96j4n04wL42Peydiq9Gr4jS95xaWPDlQsjieEbjp PGLpU/wxLHRF5uBH0amaFzt/j0Npj9UMm2DGmn22e+k1YV7MZyEfIZabRth56rgEejAU GZn1osRZu9RenutOn59uEaNl9Gkavs529050DryzuC57BtHgUYBo4ShmW4TJXrQ3KWrS TwTdae+pQkifkgf+Tja1YjvK7jd9jPWZKaE0zZPwghs9kePVMF8O6GO4JQkjqj9MDFur maWPV57FOGp+ovcBMSHcVlWJadbdU1jC8mzmlwZtCi8gULUNAOf1xYeERFvHrgdoDFqE QPXw== X-Gm-Message-State: AOAM5334YPZzD9BcYVFi4OmsYZ5ktzg+bK0LoX6qrv5SBmSUuWkWsrEH LG24EyiLd2JyNhj2CJpiN5w= X-Received: by 2002:a17:90a:e7cc:: with SMTP id kb12mr3628046pjb.31.1616247192421; Sat, 20 Mar 2021 06:33:12 -0700 (PDT) Received: from ?IPv6:2405:201:600d:a089:1ce8:18d9:6e3d:8c29? ([2405:201:600d:a089:1ce8:18d9:6e3d:8c29]) by smtp.gmail.com with ESMTPSA id p17sm8386881pjv.49.2021.03.20.06.33.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Mar 2021 06:33:12 -0700 (PDT) Subject: Re: [RFC] scripts: kernel-doc: avoid warnings due to initial commented lines in file To: Lukas Bulwahn Cc: Jonathan Corbet , Markus Heiser , "open list:DOCUMENTATION" , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org References: <20210309125324.4456-1-yashsri421@gmail.com> <8959bf29-9ee1-6a1d-da18-f440232864f3@darmarit.de> <871rcg2p8g.fsf@meer.lwn.net> <878s6kto3g.fsf@meer.lwn.net> <87o8fgpbpx.fsf@meer.lwn.net> <99a21e10-266e-b997-7048-c29a570afe0b@gmail.com> <30051ed8-33e4-a303-199c-f4bdcb0e448a@gmail.com> From: Aditya Srivastava Message-ID: <9f5d3dc7-ed79-a420-346a-914004964569@gmail.com> Date: Sat, 20 Mar 2021 19:03:06 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/3/21 6:51 pm, Lukas Bulwahn wrote: > On Sat, Mar 20, 2021 at 1:45 PM Aditya Srivastava wrote: >> >> On 20/3/21 12:23 pm, Aditya wrote: >>> On 18/3/21 11:48 pm, Jonathan Corbet wrote: >>>> Lukas Bulwahn writes: >>>> >>>>> Yeah, and as this line-counting is really just a poor man's >>>>> heuristics, we might just be better to really turn this heuristics >>>>> into a dedicated cleanup warning script, then we can check for more >>>>> indicators, such as "does it contain the word Copyright" somewhere in >>>>> the kernel-doc comment, which tells us even more that this is not a >>>>> kernel-doc as we would expect it. >>>> >>>> I really don't think we need that kind of heuristic. The format of >>>> kerneldoc comments is fairly rigid; it shouldn't be too hard to pick out >>>> the /** comments that don't fit that format, right? Am I missing >>>> something there? >>>> >>>> Thanks, >>>> >>>> jon >>>> >> >> Hi Lukas and Jon! >> I have a question, should I clean up the files with '/**' like >> comments in only header lines? Or as we are planning for making it >> generic, for other lines as well? >> > > Aditya, of course, if you can detect and come across some unintended > '/**' comments in some files, clean them in the same go (as you did > with ecryptfs). > > I am just worried that if you extend it to the fully generic case, > that the list of cases simply explodes: showing many 1,000 cases > across various 1,000 files that need to be cleaned up, and such > clean-up work is just too much to get done by yourself. > > The current list limited to comments in header lines seems to be a set > of patches that you can probably get done. > Sounds good, Lukas. Thanks Aditya