Skip to content

Commit 2c0700e

Browse files
mchehabgregkh
authored andcommitted
scripts/get_abi.pl: add a handler for invalid "where" tag
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>
1 parent 2e7ce05 commit 2c0700e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎scripts/get_abi.pl‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ sub parse_abi {
9292
}
9393
}
9494

95+
# Invalid, but it is a common mistake
96+
if ($new_tag eq "where") {
97+
parse_error($file, $ln, "tag 'Where' is invalid. Should be 'What:' instead", $_);
98+
$new_tag = "what";
99+
}
100+
95101
if ($new_tag =~ m/what/) {
96102
$space = "";
97103
if ($tag =~ m/what/) {

0 commit comments

Comments
 (0)