Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp583001pxu; Wed, 7 Oct 2020 10:21:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys0Zce63IKtw8ekHDYj6n54scZsaCZp7m1B8dD+Gq9SPj6cvqEfsqHd6yY/PrD5A4vnnit X-Received: by 2002:a17:906:30c5:: with SMTP id b5mr2598091ejb.460.1602091298845; Wed, 07 Oct 2020 10:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602091298; cv=none; d=google.com; s=arc-20160816; b=JoS0mZa2h2oCo3nHHLMJeqPwut0dsupqRVHTqaZKZpcRoU8Jw7tm+BFWXRnp7C2Pbo aBnS16WZWrpjYWA486ELJwyBvjheTCWyQiM6bsKqmBCmPvo7MlqG/m4dhLCFhLoZQthg OyqQaA32/EwYTzx667MPOg3IbMO6467pymhegkeNJma+XVMmZp0PSyqELEM6N5cyPTTk XW2u3XbLCrkxiCBqLh8pc4RGRXVe361Xy2eov+zU8xTmcWtu1elJEeLvzgSAUQxyKiSp QAYztrQNLDJzfswiEEVaiTRsmUtonQjl/p9CIXhmXAjUEKwm4GIQRdIlxzggU6OUkuQg 02mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=w4imE3c2lblaEnNKHuE07ha830dRlpN8kjP/Nu5g64I=; b=EvITJr6FPthZME6vv+zVBCaShGsCLACyZjm42CNisPHxhKRexvlxwhbwh8HpC2cwKS y5zH9pquWMlRClNt1OolE87kVFuPfQx79/MkcF0fVs62eqLARIs59827P7o7IvfZ1L2s Gy6kpwtpXiPqAtJRDu3lVC4zazV92qkpWb27m0eKymbrR94sx0w6lBkj2Wux9NtVOKjg 2LyoVGtjol/0AsjVnfXmzgGzzsNs1xqT/66lYk6+z9HwAt9muenwXotcSc1fHPV35rl/ 6IZmfc5zDw6bDAWw2w15KdJaV2Ow0uPSsD5jBvVUO2ouNoD23PJeZFDvHwf7QjwvfQjn qsdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zdXD+EwJ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si1776803edo.610.2020.10.07.10.21.15; Wed, 07 Oct 2020 10:21:38 -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=@kernel.org header.s=default header.b=zdXD+EwJ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728464AbgJGNjE (ORCPT + 99 others); Wed, 7 Oct 2020 09:39:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:45684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728177AbgJGNjD (ORCPT ); Wed, 7 Oct 2020 09:39:03 -0400 Received: from coco.lan (ip5f5ad5a2.dynamic.kabel-deutschland.de [95.90.213.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E4A3206DD; Wed, 7 Oct 2020 13:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602077942; bh=eHBZM3e+OsoNoiBsGa6VPI5CvFUAkYu3cfJMwsq7vzQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zdXD+EwJrcZznzdEW4k/95S8eSi5VbPkfk6IlgMaG9eI0WQPedJvKli6QOzbCEEDb joT1qm/JSIrTbcISfaYk7fYTQ/xHICosBOoVPQONHXNIcie0kcSUaCOcrTt1I1lkND ivFzujgBk0hbaUlvIToke+M91eWVpMzTjqHGM0oM= Date: Wed, 7 Oct 2020 15:38:54 +0200 From: Mauro Carvalho Chehab To: Joe Perches Cc: Jani Nikula , Linux Doc Mailing List , Jonathan Corbet , Matthew Wilcox , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] script: add a script for checking doc problems with external functions Message-ID: <20201007153854.17712cd3@coco.lan> In-Reply-To: <0b3f06aca033deb1fe3b1635ff3932e7b3f4127a.camel@perches.com> References: <20201005125920.27a7768d@coco.lan> <87tuv6igwg.fsf@intel.com> <0b3f06aca033deb1fe3b1635ff3932e7b3f4127a.camel@perches.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 07 Oct 2020 01:32:31 -0700 Joe Perches escreveu: > On Wed, 2020-10-07 at 11:23 +0300, Jani Nikula wrote: > > On Tue, 06 Oct 2020, Mauro Carvalho Chehab wrote: > > > While not all EXPORT_SYMBOL*() symbols should be documented, > > > it seems useful to have a tool which would help to check what > > > symbols aren't documented. > > > > > > This is a first step on this direction. The tool has some > > > limitations. Yet, it could be useful for maintainers to check > > > about missing documents on their subsystems. > > > > Seems like this should be part of checkpatch.pl somehow. > > I don't see how. Just sent a third version of the script. It should now be able to check if the RST files have the exported symbols as well: $ scripts/check_docs_external_symbols lib/debugobjects.c lib/debugobjects.c: export symbol debug_object_active_state not documented at: Documentation/core-api/debug-objects.rst It also checks if an exported symbol has duplicated entries at kernel-doc as well. The check logic for it is somewhat complex. so, I won't doubt that there are some other hidden bugs. Also, as right now, the script is slow, if one wants to run it for the entire Kernel. Thanks, Mauro