Commit 0b87a1b8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Greg Kroah-Hartman

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: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/caa37831c9e02ae58677d1515ed7cee94f52ea9d.1631957565.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 50116aec
...@@ -550,6 +550,10 @@ my @files; ...@@ -550,6 +550,10 @@ my @files;
my $escape_symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x29\x2b-\x2d\x3a-\x40\x7b-\xfe]) }x; my $escape_symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x29\x2b-\x2d\x3a-\x40\x7b-\xfe]) }x;
sub parse_existing_sysfs { sub parse_existing_sysfs {
my $file = $File::Find::name; my $file = $File::Find::name;
# Ignore cgroup and firmware
return if ($file =~ m#^/sys/(fs/cgroup|firmware)/#);
my $mode = (lstat($file))[2]; my $mode = (lstat($file))[2];
my $abs_file = abs_path($file); my $abs_file = abs_path($file);
...@@ -570,9 +574,6 @@ sub parse_existing_sysfs { ...@@ -570,9 +574,6 @@ sub parse_existing_sysfs {
sub check_undefined_symbols { sub check_undefined_symbols {
foreach my $file (sort @files) { foreach my $file (sort @files) {
# Ignore cgroup and firmware
next if ($file =~ m#^/sys/(fs/cgroup|firmware)/#);
my $defined = 0; my $defined = 0;
my $exact = 0; my $exact = 0;
my $whats = ""; my $whats = "";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment