Skip to content

Commit

Permalink
scripts: get_abi.pl: fix fallback rule for undefined symbols
Browse files Browse the repository at this point in the history
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: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/a3ba919e9a9208a5f012a13c9674c362a9d73169.1632994565.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
mchehab authored and gregkh committed Oct 5, 2021
1 parent 8f5cfb3 commit 4dcce5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get_abi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ ($$)
}

if ($leave ne "others") {
my @expr = @{$leaf{$leave}->{expr}};
my @expr = @{$leaf{"others"}->{expr}};
for (my $i = 0; $i < @names; $i++) {
foreach my $re (@expr) {
print STDERR "$names[$i] =~ /^$re\$/\n" if ($debug && $dbg_undefined);
Expand Down

0 comments on commit 4dcce5b

Please sign in to comment.