summaryrefslogtreecommitdiffstats
path: root/scripts/get_abi.pl
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2022-01-29 01:50:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-04 16:43:09 +0100
commitaa21a1bf97be50ce07d796fb6b0b330822515469 (patch)
treeae8f7591ec9f35a607846a66095e335d1b848deb /scripts/get_abi.pl
parentspdxcheck.py: Fix a type error (diff)
downloadlinux-aa21a1bf97be50ce07d796fb6b0b330822515469.tar.xz
linux-aa21a1bf97be50ce07d796fb6b0b330822515469.zip
scripts/get_abi.pl: Ignore hidden files
get_abi.pl currently collects every file in Documentation/ABI. This causes a UnicodeDecodeError in Documentation/sphinx/kernel_abi.py, when it finds my Vim swap files (.foo.swp) in the directory. To avoid such issues, ignore hidden files in get_abi.pl. Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Link: https://lore.kernel.org/r/20220129005019.2090996-1-j.neuschaefer@gmx.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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 6212f58b69c6..47b7eca5b0b7 100755
--- a/scripts/get_abi.pl
+++ b/scripts/get_abi.pl
@@ -92,6 +92,7 @@ sub parse_abi {
my $mode = (stat($file))[2];
return if ($mode & S_IFDIR);
return if ($file =~ m,/README,);
+ return if ($file =~ m,/\.,);
my $name = $file;
$name =~ s,.*/,,;