Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp317821pxu; Tue, 6 Oct 2020 07:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCl63esvz00pXUoJZLdiqZdUPQqEH+Y2tff2spWLjelOewBb6dsuRLhbhr6l/MlVjGe+q5 X-Received: by 2002:adf:9ec2:: with SMTP id b2mr5301300wrf.107.1601993513364; Tue, 06 Oct 2020 07:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601993513; cv=none; d=google.com; s=arc-20160816; b=kCdX1rW6KGZFvLv/pRXBC5YJwebK4NnajMsUaYR0ztr+i32pxLO32WCSG6dtDn6uFV q98tNjDwuZabh0Go8ti0autohRIsV5BaimGtMKT6UUHwz+PohjiEOHLaUJtFuc0vFTyN JXrNH/0pVLTZaVddbNiYelozNbFfdORskQw36HuPUWCljwFLGiCUSwYpxMskj+y8opf5 HMnN9mCsgUn5EhXVu1C8V4nxZoT0NU4IgzISDVVmcsGERnnM0rjGGxiEv5C+wDINlFmk hi/rzRRSNMtfDRKVzKyL2kDZ0Sn/Vt/sk7hLeA7XPv8Mw1/A80d8ml1L6gKya+PcG8nq Gt9w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fpYKtuvgz/chubrprd/q9ze81SKtIc8S0PjA6ZVawRA=; b=bvGtEfXt9Sn8dVmdR5yU21rvAJ68KwWyjPKdDXzsiBdt2cfDBcjEbRSKfDuLrYUX+H MHzeGON9VHMkxYCzrkJIULb6oO/rOqSiGPDrwi/Edbw+8XNH7cTDusNlh6CnfFSv7rjV dnzkiWLw21QklxwQrpEJu69sNVc7fF53xK5rMnJEGK60kGloCfIegkJW74An+hoWZHlP 770/QHRYBFW5roPDCpFxvYEn8m+bZhVPuPK6+tErPB8sLrM+5hCZaZVj567NMtkd1S54 kBReDa53X1/rSFIaH9x7U9vhauBnfAiUC9ThzV0MpslSxLaOIiWdUNrH+1449zaa5SVv SLiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w+pEXREI; 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 g15si2730314edp.565.2020.10.06.07.11.28; Tue, 06 Oct 2020 07:11:53 -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=w+pEXREI; 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 S1726536AbgJFOHu (ORCPT + 99 others); Tue, 6 Oct 2020 10:07:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:33180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbgJFODy (ORCPT ); Tue, 6 Oct 2020 10:03:54 -0400 Received: from mail.kernel.org (ip5f5ad5bd.dynamic.kabel-deutschland.de [95.90.213.189]) (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 84182208B8; Tue, 6 Oct 2020 14:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601993033; bh=LvfP0jOK13UuuLfelIbMUCsdO3bUxdpXbiy+j5C7Kks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w+pEXREIDqHDPL1X35yD4REc0Fxu87CsoHbTzWWDaJGwZdZ3vTZq48Ok0+ceE9XRB TVy4Fd+rS9cOvEpSKfreYN8dbvwvDuZFNVaKHxb/+tLGXaEMQzDA7McXLYwLTniL1S WMEhGcB86je+FM+v1bqf9v93JmvaA0/QF9cxbrHo= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kPnZH-0019Ex-Cz; Tue, 06 Oct 2020 16:03:51 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , Changbin Du , linux-kernel@vger.kernel.org Subject: [PATCH v5 11/52] docs: kerneldoc.py: append the name of the parsed doc file Date: Tue, 6 Oct 2020 16:03:08 +0200 Message-Id: <2f563405fe85dc09dfaa8d27c34e92282bebefa1.1601992016.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Finding where an error like this was generated: ../lib/math/div64.c:73: WARNING: Duplicate C declaration, also defined in 'kernel-api'. Can take some time, as there's no glue about what kernel-doc tag generated it. It is a way better to display it as: .../Documentation/core-api/kernel-api:171: ../lib/math/div64.c:73: WARNING: Duplicate C declaration, also defined in 'kernel-api'. Declaration is 'div_s64_rem'. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kerneldoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py index 1a1b12242a45..a3a5427130da 100644 --- a/Documentation/sphinx/kerneldoc.py +++ b/Documentation/sphinx/kerneldoc.py @@ -141,7 +141,8 @@ class KernelDocDirective(Directive): lineoffset = int(match.group(1)) - 1 # we must eat our comments since the upset the markup else: - result.append(line, filename, lineoffset) + doc = env.srcdir + "/" + env.docname + ":" + str(self.lineno) + result.append(line, doc + ": " + filename, lineoffset) lineoffset += 1 node = nodes.section() -- 2.26.2