]> git.itanic.dy.fi Git - linux-stable/commitdiff
scripts/get_abi.pl: ignore some temp files
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 28 Dec 2023 23:31:13 +0000 (15:31 -0800)
committerJonathan Corbet <corbet@lwn.net>
Wed, 3 Jan 2024 21:02:17 +0000 (14:02 -0700)
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
scripts/get_abi.pl

index 408bfd0216da0b93f0040806842075fb8eab3d19..de1c0354b50ca48d9e71e5b44e90902a056b6e47 100755 (executable)
@@ -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,.*/,,;