From: Mauro Carvalho Chehab Date: Thu, 20 Jun 2019 17:23:03 +0000 (-0300) Subject: scripts/get_abi.pl: add a handler for invalid "where" tag X-Git-Tag: v5.4.17~3171^2~27 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2c0700e7afa40330f2d21defe2a7bffcb0eecb1e;p=arm%2Flinux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 329ace635ac2..c5038a0a7313 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -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/) {