Received: by 10.192.165.148 with SMTP id m20csp4673347imm; Tue, 8 May 2018 12:16:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrr6oFB0sG/NYOIj9YnpiNCRNxg3I8jgyFKN3dBXZ/A0FFyZPdB+qXjoo2Mj7sFSUVCl9P X-Received: by 2002:a63:7f4f:: with SMTP id p15-v6mr2302185pgn.319.1525806990423; Tue, 08 May 2018 12:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525806990; cv=none; d=google.com; s=arc-20160816; b=n7KUWhmVx2LFlpwTmaIRBnMSdilzwcq6qVv8k/bd/x6g7K0KC5KIEtZ/6YRNhPSuWr LFFgGJ5Mp2eHgzKiBmExHorY/RmYROc+btTtcpPRAmH7xlq7PG/qJDWjo7A/nhBc7RGa 4LGVUwHws6WC68IxTIXEYfJqBMC1Q+U+8sO+0OtUIcBTTaE3j3Jt0JzcJmXZfUM98WEA KksAQanDCTeQbMV3LuzWMa7O01B4iHZvqGijWeu+uxjsel18XXUC/BvhMvgiV9j9Ncft /qUDEuOiPI0JhI9KvKC358KbTUJLgKiae5Y9JHkjkhXZZXngR1Lu7k+6yioCkB9HssyJ R48Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=KLqYYsqNtPzOIH/RJ0MA3T/kP7EOaM1RHnxWlIRU6rk=; b=ega2r36MxRoMuGcDfuZLsNESeH9FWt/XKdmRoGWjiZkLnsrpJv2Jv28KeuMmoqAMLq O+tGrUOwAZPwX1sb0+ReUMI4HS5CucO+cw0uarodxzNHRKmPkZ1SgHXMyaY62UK6yRIC ki2FREhPsPSnCnS+X9VZ2LKFKnOWwskGgD3c3uAnSPnP0GSjWJfbRgLnr7T+cNxTfXik oWUeqs9E5SHQaXyQbv31pHMn9+j2Chr2uDD+0zJubLWo3/aTxN4yI/lUfklOnVNeubKb u9/T01kix5EcuyvvJtxLIG/ZE5cKig24qw8sBfnvomk5NY7zZ/Sb/b46WlPBDO5dv84d oV+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F4kBGgl9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8-v6si24863735plc.342.2018.05.08.12.16.15; Tue, 08 May 2018 12:16:30 -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=pass header.i=@amarulasolutions.com header.s=google header.b=F4kBGgl9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755544AbeEHTFY (ORCPT + 99 others); Tue, 8 May 2018 15:05:24 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:39508 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755186AbeEHTFW (ORCPT ); Tue, 8 May 2018 15:05:22 -0400 Received: by mail-wr0-f171.google.com with SMTP id q3-v6so33371916wrj.6 for ; Tue, 08 May 2018 12:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KLqYYsqNtPzOIH/RJ0MA3T/kP7EOaM1RHnxWlIRU6rk=; b=F4kBGgl9NF0Qg1ZQnMJ26ZTzls/s6zMa9RDMNjLcKsj1QmDOMbOxtf7JqLwSy9wj6r O7gC0sK6ppOJ4LjbeqKbg9mw1o/1fWLT8n3qJ9RYms1geb9Gc/HxbhMrcNR5ZRnnAJG9 VdR0apoVDlNu7zo6AEPnrvM85eFxATwTs8CiU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KLqYYsqNtPzOIH/RJ0MA3T/kP7EOaM1RHnxWlIRU6rk=; b=m2Z88I0JMq4unHCMG6egBHdi3X4j9vHZbS3N/wMJekFiZimBU5hjzN5cUHpxcMqxve PCEGJP27Hg0PksAnM7A1c+3Ec1siEapG2pUFqZzPo5oxZ2j2+s3JWd8ZgD9K3l4NqHcA QXLaQPlBASIr/jvbc3YQ/HiLU3edS9Vs4K71MNQR+GRKL7fiwzwhdRjRG9MOqofQsja0 0AVBdM2JLr9N1EFdQz/5187JKgLg1KMOFVLjw/ZPpUhzKiojgs7soPK8ywNcfEvDa8aO Pgdm2uaFipXy9IIxORjALKV/StVr7brpamLegLYnNSHAkS2KC/bR8AoCGfqEotrmYSjk 2J4w== X-Gm-Message-State: ALQs6tCg79R40vGGSJib9NcvGBzQINnlWgcTFeaoE/ffXLChWjlTpPsB bSOeNjMt7h8Ns2xV3e+aHfYRPw== X-Received: by 2002:adf:9cc2:: with SMTP id h2-v6mr23816909wre.11.1525806320279; Tue, 08 May 2018 12:05:20 -0700 (PDT) Received: from andrea ([94.230.152.15]) by smtp.gmail.com with ESMTPSA id 2-v6sm39943794wrb.22.2018.05.08.12.05.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 12:05:19 -0700 (PDT) Date: Tue, 8 May 2018 21:05:05 +0200 From: Andrea Parri To: Mauro Carvalho Chehab Cc: Jani Nikula , Linux Doc Mailing List , linux-kernel@vger.kernel.org, Jonathan Corbet , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Matthew Wilcox , Jeff Layton , Randy Dunlap , Elena Reshetova , "Tobin C. Harding" Subject: Re: [PATCH 05/18] docs: core-api: add cachetlb documentation Message-ID: <20180508190505.GA12213@andrea> References: <07b59879d34502828467f0190f941e23e08fdc81.1525684985.git.mchehab+samsung@kernel.org> <20180507122937.GA5813@andrea> <87y3gu43d3.fsf@intel.com> <20180508150507.284ef477@vento.lan> <20180508152851.11f39370@vento.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508152851.11f39370@vento.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 08, 2018 at 03:28:51PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 8 May 2018 15:05:07 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Tue, 08 May 2018 17:40:56 +0300 > > Jani Nikula escreveu: [...] > > > Side note, there's scripts/documentation-file-ref-check to grep the > > > kernel tree for things that look like file references to Documentation/* > > > and complain if they don't exist. > > > > > > I get about 350+ hits with that, patches welcome! ;) > > > > This small script fixes a bunch of such errors: > > > > scripts/documentation-file-ref-check 2>broken_refs > > for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); do > > rst=$(basename $i) > > rst=${rst/.txt/.rst} > > f=$(find . -name $rst) > > f=${f#./} > > if [ "$f" != "" ]; then > > echo "Replacing $i to $f" > > for j in $(git grep -l $i); do > > sed "s@$i@$f@g" -i $j > > done > > fi > > done > > It follows an improvement to the above script that shows also what > it didn't find as a ReST file, and the ones that have common names > with multiple matches. > > I guess we could integrate something like that at > scripts/documentation-file-ref-check, in order to allow auto-correcting > renamed .txt files. FWIW, this would be more than welcome with me; thank you, Andrea > > Regards, > Mauro > > > #!/bin/bash > > scripts/documentation-file-ref-check 2>broken_refs > for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); do > rst=$(basename $i) > rst=${rst/.txt/.rst} > f=$(find . -name $rst) > > if [ "$f" == "" ]; then > echo "ERROR: Didn't find a .rst replacement for $i" > elif [ "$(echo $f | grep ' ')" != "" ]; then > echo "ERROR: Found multiple possible replacements for $i:" > for j in $f; do > echo " $j" > done > else > echo "Replacing $i to $f" > f=${f#./} > for j in $(git grep -l $i); do > sed "s@$i@$f@g" -i $j > done > fi > done > > > Thanks, > Mauro