[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3e2f5591b350c769cdf1a896c14555f4b7b94e6a.1632402570.git.mchehab+huawei@kernel.org>
Date: Thu, 23 Sep 2021 15:30:04 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Linux Doc Mailing List <linux-doc@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
"Jonathan Corbet" <corbet@....net>, linux-kernel@...r.kernel.org
Subject: [PATCH 06/13] scripts: get_abi.pl: Ignore fs/cgroup sysfs nodes earlier
In order to speedup the parser and store less data, handle
fs/cgroup exceptions a lot earlier.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
---
scripts/get_abi.pl | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl
index 8f69acec4ae5..41a49ae31c25 100755
--- a/scripts/get_abi.pl
+++ b/scripts/get_abi.pl
@@ -551,6 +551,10 @@ my @files;
my $escape_symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x29\x2b-\x2d\x3a-\x40\x7b-\xfe]) }x;
sub parse_existing_sysfs {
my $file = $File::Find::name;
+
+ # Ignore cgroup and firmware
+ return if ($file =~ m#^/sys/(fs/cgroup|firmware)/#);
+
my $mode = (lstat($file))[2];
my $abs_file = abs_path($file);
@@ -571,9 +575,6 @@ sub parse_existing_sysfs {
sub check_undefined_symbols {
foreach my $file (sort @files) {
- # Ignore cgroup and firmware
- next if ($file =~ m#^/sys/(fs/cgroup|firmware)/#);
-
my $defined = 0;
my $exact = 0;
my $whats = "";
--
2.31.1
Powered by blists - more mailing lists