summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-20 20:23:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-21 17:57:45 +0300
commit2c0700e7afa40330f2d21defe2a7bffcb0eecb1e (patch)
tree5fefdd51345e19311b311c26b1738e9935f16d1a /scripts
parent2e7ce05593b39f0a947819ca8b73f2185f372f12 (diff)
downloadlinux-2c0700e7afa40330f2d21defe2a7bffcb0eecb1e.tar.xz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get_abi.pl6
1 files changed, 6 insertions, 0 deletions
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/) {