get_abi.pl: seek for all occurrences for Documentation/ABI
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 25 Mar 2021 10:38:23 +0000 (11:38 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 31 Mar 2021 19:53:15 +0000 (13:53 -0600)
Instead of retrieving just one match at most, ensure that the entire
description will be parsed.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/17019b73e106d1b1b353b8880ed189bad3604c13.1616668017.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/get_abi.pl

index a9348b9bdaa404f0caa44e994f4bb5061b8b903c..3c82cd188368dc43fed6d63f821449e34f34c669 100755 (executable)
@@ -380,7 +380,7 @@ sub output_rest {
 
                                $desc =~ s,Documentation/(?!devicetree)(\S+)\.rst,:doc:`/$1`,g;
 
-                               my @matches = $desc =~ m,Documentation/ABI/([\w\/\-]+),;
+                               my @matches = $desc =~ m,Documentation/ABI/([\w\/\-]+),g;
                                foreach my $f (@matches) {
                                        my $xref = $f;
                                        my $path = $f;