Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp36516ybi; Wed, 29 May 2019 16:11:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoZ1HU4auY9QI31GdmB7sPjM12IclvYfo71Gx9tTbue8gdIBnl3lV4w9GfXz8g/SVt3x07 X-Received: by 2002:a63:788a:: with SMTP id t132mr641242pgc.52.1559171475764; Wed, 29 May 2019 16:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559171475; cv=none; d=google.com; s=arc-20160816; b=PoVgoKGZ70ba4W+FBMc3l3hDx8hNWIYEkjxxX8NGIjwA4SiQke7lErPoivVrd5DQ2i 3whklgSg/bssSVFWmAexqrTAXgcytIxlMaqKL84Tavp9IOGw0c2V3ZzgnfqLLGC0WzXZ 0qPGNdC1KOypa9kZpuwLNmXdvUw8QWkDDg/8KNxgBRRGqnqCtPuLoYUc4/dtzMda1Y20 OMHBqi3/kUlYDCEtNqhBRnrcQMwqH0AqwHEO4/Q4Ks3T1PjllDUNCblejsNwFVepaNkW FQae/BNUqf/o6In4hqh3/Feu45HC3fHS+NydS3GZ9qQ3W/+J08CviGwlfpGZhbEDPhr9 VRCA== 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=t7V/jAIyRWeGVCJDZeH1LhdUcZQK43LHg68xT8DRQOM=; b=ZuVHCNgcupuBEDWp37cSJv6RwyH2yp5Z1IJS08pW0vWmQVBGj9chwNv+faMDZsFHVV brYZHd33UTNtuu8xCH3WxrdoBTneZ3S1WAw50AWrBnRumG/PVePGp+V19t40QyMWDFNv ZNuqDHndciVg6dl7IEzjbQEVVru4xG2dUH0x9LP6E3MhdsuLbhEDPcVRCv6rJkPOMJ51 WXkmfQLUePQm90J9x4yvsGr3+ugsdRXj5Mo2UZV1W9AXHMNZ3IrAdu3zmMAAhMoSfyCf JetEs40JjiPbLe2UbLG97LbLUSW6iX2+oKLnsZThEzS7zXRCvAZ1+Ez4vbdCN4C06+hg DISA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gwVvUgnX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si1105952plk.237.2019.05.29.16.11.00; Wed, 29 May 2019 16:11:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gwVvUgnX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbfE2XJr (ORCPT + 99 others); Wed, 29 May 2019 19:09:47 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47582 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbfE2XJh (ORCPT ); Wed, 29 May 2019 19:09:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=t7V/jAIyRWeGVCJDZeH1LhdUcZQK43LHg68xT8DRQOM=; b=gwVvUgnXfZyNeurHHgH90G15vz QUWoJ6dIMEAOTt8/Oq5juFdsLVVXXvXJIqv3dB7r75ikwSlHpbgsYP3ea/i+swQzYp9bGESSCcevy yA7+A25AE/5DBMUsh47XGJdqOyo/JuCb85Yf32Cg614KX+z6ac9kaeez7UlGjhAjbGmB0yxrORDIg Rep1gYn9l74D2KEYHj1Fa+Mbd5DpGhf01ph4dFbFh+Oyp0BF1yBVCKBgMnR4G6nnTfxpEliaADEQC xqGdFe1l+/hfCnl8YZpfM02Ss/wjvd5cZnWhxbD9kghzmkAozG87LlozG3MTdjUzyTPJiAJgipUX5 P8uLfM0A==; Received: from 177.132.232.81.dynamic.adsl.gvt.net.br ([177.132.232.81] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW7hQ-0000lH-Hw; Wed, 29 May 2019 23:09:36 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hW7hN-0007Th-Mf; Wed, 29 May 2019 20:09:33 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 07/10] scripts/documentation-file-ref-check: improve tools ref handling Date: Wed, 29 May 2019 20:09:29 -0300 Message-Id: <9992ab4f4728b99dddf2eb018b5a47509d0ebf24.1559170790.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's a false positive on perf/util: tools/perf/util/s390-cpumsf.c: Documentation/perf.data-file-format.txt The file is there at tools/perf/Documentation/, but the logic with detects relative documentation references inside tools is not capable of detecting it. So, improve it. Signed-off-by: Mauro Carvalho Chehab --- scripts/documentation-file-ref-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index 05235775cc71..5d775ca7469b 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check @@ -127,7 +127,7 @@ while () { if ($f =~ m/tools/) { my $path = $f; $path =~ s,(.*)/.*,$1,; - next if (grep -e, glob("$path/$ref $path/$fulref")); + next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref")); } # Discard known false-positives -- 2.21.0