Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2138974imm; Thu, 14 Jun 2018 09:18:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIk7u4jaL8GqwgfZVgudFNtKzYjauIEwHYH7oePkrLHLcEhE7c2fhWGxnejcXi/PdHCb6V6 X-Received: by 2002:a65:5306:: with SMTP id m6-v6mr2859799pgq.250.1528993117998; Thu, 14 Jun 2018 09:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528993117; cv=none; d=google.com; s=arc-20160816; b=afuIHRFuIAxTtGbAEL0dy5/DKiTN4mTpoACs1ZbkpNSfE2g5s4x23SkJyzjQJlLO+i psrTwA3gUazqtS47CTYTHHIJes+Bxc+A4DDCl6BbYHTxAWxF4C6aQ/Dg3hTkAxKAYjb7 VbuWFYLYVqZa1tl+CS+WZKqeYHE1ulVfjO/MoRG1+XlzDCN9g2KHvDxp8q702b+j3+0j NbHrG7D17p5Q61rEpN61zArmQCBZof8JcWKcNiqOwO141p/YVBKlW1qFZanJFMy5Mh4U 2n0dLDhlwLHwJN8nDIDAMwfdfi3nTpcIF8oSD/IYV2VvWO0o//Wfeogb13yI7WL4TtjN zBzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=LwSPsxIE/kTsKa9PjpZLpN9+sq7bSU2i/H8uGVaoScM=; b=LgCJVbht8bxZpLipAiZlUcn2sgpIX+l2227E5+zV+gpNxudg7OTANjAJvCHMiYvAN/ LPVf84N3rCD5GrD7Nz6YcMKCEAUuEZ7G8nSD2U0I27yWX2j+MJ4+3znjDhZGRSNF4bDd ZXO385g586RyW2c9WCA09AdPNC0V9jQBB8p+K/+6JRZGCdO9C3FrUyd1YV2HuxlDj/Ce oAq6qWfF7o9dQknvks0iOzcaq7v/s5GyDk/TtWAo8vgiLngCEk4nk6AYtyYsNciiWS1N VAOYP1fhbnnltIEyUBAHuD+Ct5WmrZgjKg0OYVWDONMUv0CXWTYPPTeiWAYu6BiQwWk9 hCwg== ARC-Authentication-Results: i=1; mx.google.com; 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 w1-v6si4610966pgr.489.2018.06.14.09.18.23; Thu, 14 Jun 2018 09:18:37 -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; 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 S1755459AbeFNQJW (ORCPT + 99 others); Thu, 14 Jun 2018 12:09:22 -0400 Received: from osg.samsung.com ([64.30.133.232]:61131 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755069AbeFNQJS (ORCPT ); Thu, 14 Jun 2018 12:09:18 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id DA21220ECF; Thu, 14 Jun 2018 09:09:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4UQF5TcO0CqE; Thu, 14 Jun 2018 09:09:16 -0700 (PDT) Received: from smtp.s-opensource.com (177.41.114.220.dynamic.adsl.gvt.net.br [177.41.114.220]) by osg.samsung.com (Postfix) with ESMTPSA id 6A9EE20E9B; Thu, 14 Jun 2018 09:09:16 -0700 (PDT) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.91) (envelope-from ) id 1fTUoE-0005TG-94; Thu, 14 Jun 2018 13:09:14 -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 v3 15/27] scripts/documentation-file-ref-check: check tools/*/Documentation Date: Thu, 14 Jun 2018 13:09:00 -0300 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some files, like tools/memory-model/README has references to a Documentation file that is locale to it. Handle references that are relative to them too. Signed-off-by: Mauro Carvalho Chehab --- scripts/documentation-file-ref-check | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index 047f463cdf4b..078999a3fdff 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check @@ -78,6 +78,13 @@ while () { # Check if exists, evaluating wildcards next if (grep -e, glob("$ref $fulref")); + # Accept relative Documentation patches for tools/ + if ($f =~ m/tools/) { + my $path = $f; + $path =~ s,(.*)/.*,$1,; + next if (grep -e, glob("$path/$ref $path/$fulref")); + } + if ($fix) { if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) { $broken_ref{$ref}++; -- 2.17.1