summaryrefslogtreecommitdiffstats
path: root/scripts/get_abi.pl
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2023-12-29 00:31:13 +0100
committerJonathan Corbet <corbet@lwn.net>2024-01-03 22:02:17 +0100
commit75ddc07835ab20fcd7b79710ab766bde71873d53 (patch)
tree121efb1d5d671a3ee38ecbac3ee4743ea11e0c2b /scripts/get_abi.pl
parentdocs: kernel_abi.py: fix command injection (diff)
downloadlinux-75ddc07835ab20fcd7b79710ab766bde71873d53.tar.xz
linux-75ddc07835ab20fcd7b79710ab766bde71873d53.zip
scripts/get_abi.pl: ignore some temp files
When there are filenames of the form ".orig" or ".rej" in the Documenatation/ABI/ subdirectories, there can be confusing or erroneous output generated. Example: the file Documenation/ABI/testing/sysfs-bus-papr-pmem.orig causes this warning message: Documentation/ABI/testing/sysfs-bus-papr-pmem:2: WARNING: unknown document: '/powerpc/papr_hcalls' Prevent this by skipping over filenames that may be created by patch/diff tools etc. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20231228233113.5218-1-rdunlap@infradead.org
Diffstat (limited to '')
-rwxr-xr-xscripts/get_abi.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl
index 408bfd0216da..de1c0354b50c 100755
--- a/scripts/get_abi.pl
+++ b/scripts/get_abi.pl
@@ -93,6 +93,7 @@ sub parse_abi {
return if ($mode & S_IFDIR);
return if ($file =~ m,/README,);
return if ($file =~ m,/\.,);
+ return if ($file =~ m,\.(rej|org|orig|bak)$,);
my $name = $file;
$name =~ s,.*/,,;