History

scripts/get_abi.pl: fix parse issues with some files

A few files are failing to parse: Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats Documentation/ABI/testing/sysfs-class-pktcdvd Documentation/ABI/testing/sysfs-bus-nfit On all three files, the problem is that there is a ":" character at the initial file description. Improve the parse in order to handle those special cases.

Mauro Carvalho Chehab committed 7 years ago

Commit 7d7ea8d1 parent 45f96511 file · +2 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/get_abi.pl+2−2
@@ -87,7 +87,7 @@ sub parse_abi { · 86 unmodified lines
8787 # New "tag" is actually part of
8888 # description. Don't consider it a tag
8989 $new_tag = "";
90− } else {
90+ } elsif ($tag ne "") {
9191 parse_error($file, $ln, "tag '$tag' is invalid", $_);
9292 }
9393 }
@@ -110,7 +110,7 @@ sub parse_abi { · 16 unmodified lines
110110 next;
111111 }
112112
113− if ($new_tag) {
113+ if ($tag ne "" && $new_tag) {
114114 $tag = $new_tag;
115115
116116 if ($new_what) {