Commit 4dcce5b0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Greg Kroah-Hartman

scripts: get_abi.pl: fix fallback rule for undefined symbols

The rule that falls back to the long regex list is wrong:
it is just running again the same loop it did before.

change it to look at the "others" table.

That slows the processing speed, but provides a better
list of undefined symbols.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/a3ba919e9a9208a5f012a13c9674c362a9d73169.1632994565.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8f5cfb3b
...@@ -746,7 +746,7 @@ sub check_file($$) ...@@ -746,7 +746,7 @@ sub check_file($$)
} }
if ($leave ne "others") { if ($leave ne "others") {
my @expr = @{$leaf{$leave}->{expr}}; my @expr = @{$leaf{"others"}->{expr}};
for (my $i = 0; $i < @names; $i++) { for (my $i = 0; $i < @names; $i++) {
foreach my $re (@expr) { foreach my $re (@expr) {
print STDERR "$names[$i] =~ /^$re\$/\n" if ($debug && $dbg_undefined); print STDERR "$names[$i] =~ /^$re\$/\n" if ($debug && $dbg_undefined);
......
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