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

scripts: get_abi.pl: ignore some sysfs nodes earlier

When checking for undefined symbols, some nodes aren't easy
or don't make sense to be checked right now. Prevent allocating
memory for those, as they'll be ignored anyway.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/5228789cbef8241d44504ad29fca5cab356cdc53.1632411447.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 92635894
...@@ -628,6 +628,14 @@ sub parse_existing_sysfs { ...@@ -628,6 +628,14 @@ sub parse_existing_sysfs {
# Ignore cgroup and firmware # Ignore cgroup and firmware
return if ($file =~ m#^/sys/(fs/cgroup|firmware)/#); return if ($file =~ m#^/sys/(fs/cgroup|firmware)/#);
# Ignore some sysfs nodes
return if ($file =~ m#/(sections|notes)/#);
# Would need to check at
# Documentation/admin-guide/kernel-parameters.txt, but this
# is not easily parseable.
return if ($file =~ m#/parameters/#);
my $mode = (lstat($file))[2]; my $mode = (lstat($file))[2];
my $abs_file = abs_path($file); my $abs_file = abs_path($file);
...@@ -709,14 +717,6 @@ sub check_undefined_symbols { ...@@ -709,14 +717,6 @@ sub check_undefined_symbols {
next if ($exact); next if ($exact);
# Ignore some sysfs nodes
next if ($file =~ m#/(sections|notes)/#);
# Would need to check at
# Documentation/admin-guide/kernel-parameters.txt, but this
# is not easily parseable.
next if ($file =~ m#/parameters/#);
if ($hint && $defined && (!$search_string || $found_string)) { if ($hint && $defined && (!$search_string || $found_string)) {
$what =~ s/\xac/\n\t/g; $what =~ s/\xac/\n\t/g;
if ($leave ne "others") { if ($leave ne "others") {
......
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