diff options
author | Tim Newsome <tim@sifive.com> | 2020-10-15 15:43:04 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2020-10-15 15:44:34 -0700 |
commit | 252fd596d0116a9ceb26c302ccc25d26c1042729 (patch) | |
tree | 7d15855f6f1d112294a1fb0df266ca8ab829ddac /tools/scripts/checkpatch.pl | |
parent | a92002dfabd17baa1861e4a5e7533d859536b4de (diff) | |
download | riscv-openocd-252fd596d0116a9ceb26c302ccc25d26c1042729.zip riscv-openocd-252fd596d0116a9ceb26c302ccc25d26c1042729.tar.gz riscv-openocd-252fd596d0116a9ceb26c302ccc25d26c1042729.tar.bz2 |
Don't complain when a change fixes a complaint.
The script was telling me:
```
WARNING: use relative pathname instead of absolute in changelog text
\#20: FILE: contrib/cross-build.sh:25:
-# /path/to/openocd/contrib/cross-build.sh <host-triplet>
```
In the change where I changed that line to not refer to an absolute
path.
Change-Id: I1a21af5c36d9aeb01d3e819bfe2b06eb00466467
Signed-off-by: Tim Newsome <tim@sifive.com>
Diffstat (limited to 'tools/scripts/checkpatch.pl')
-rwxr-xr-x | tools/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 0a119f1..bdd8408 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -1589,7 +1589,7 @@ sub process { } # Check for absolute kernel paths. - if ($tree) { + if ($tree && $line =~ /^[^-]/) { while ($line =~ m{(?:^|\s)(/\S*)}g) { my $file = $1; |