scripts/get_abi.pl: add a handler for invalid "where" tag
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 20 Jun 2019 17:23:03 +0000 (14:23 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2019 14:57:45 +0000 (16:57 +0200)
The ABI README file doesn't provide any meaning for a Where:
tag. Yet, a few ABI symbols use it. So, make the parser
handle it, emitting a warning.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/get_abi.pl

index 329ace635ac2b6561e8399deb8abc18e2e184cb9..c5038a0a73136f252095610086e9642ecfd20611 100755 (executable)
@@ -92,6 +92,12 @@ sub parse_abi {
                                }
                        }
 
+                       # Invalid, but it is a common mistake
+                       if ($new_tag eq "where") {
+                               parse_error($file, $ln, "tag 'Where' is invalid. Should be 'What:' instead", $_);
+                               $new_tag = "what";
+                       }
+
                        if ($new_tag =~ m/what/) {
                                $space = "";
                                if ($tag =~ m/what/) {