numam-dpdk/devtools
Neil Horman 7281cf520f devtools: relax rule for identifying symbol section
It was reported recently that some patches that add symbols to an
existing EXPERIMENTAL section of a version map file generate errors
because the check-symbol-change script was identifying the section as
"@@" rather than EXPERIMENTAL.  This was fairly clearly due to the fact
that the rule identifying the version section expected the whole section
to be added, rather than having it already exist, with only new symbols
being added to the existing section. This led the match rule to misread
the format of that line and pull the wrong word out of it.

The fix is to relax the rule slightly.  Rather than assume that the
section must exist on a line that was added, allow the section name to
be set by any line that ends in a '{', which should be correct, given
our coding practices.  The section name is then extracted as the next to
the last word on the line ( $(NF-1) ).

Fixes: 4bec48184e ("devtools: add checks for ABI symbol addition")
Cc: stable@dpdk.org

Reported-by: Nikhil Rao <nikhil.rao@intel.com>
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Nikhil Rao <nikhil.rao@intel.com>
2018-08-21 11:03:10 +02:00
..
cocci eal: support strlcpy function 2018-04-04 17:33:08 +02:00
build-tags.sh tools: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
check-dup-includes.sh use SPDX license tag in Mellanox copyrighted files 2018-05-25 10:33:33 +02:00
check-git-log.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
check-includes.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
check-maintainers.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
check-symbol-change.sh devtools: relax rule for identifying symbol section 2018-08-21 11:03:10 +02:00
check-symbol-maps.sh devtools: check orphan symbols in map files 2018-05-29 17:43:33 +02:00
checkpatches.sh devtools: fix checkpatch with dash 2018-08-01 16:42:53 +02:00
cocci.sh scripts: move to devtools 2017-01-04 21:17:32 +01:00
get-maintainer.sh devtools: check Linux script path if directory 2018-05-23 00:33:35 +02:00
git-log-fixes.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
load-devel-config scripts: move to devtools 2017-01-04 21:17:32 +01:00
test-build.sh devtools: add compressdev tests to build test 2018-07-26 11:08:05 +02:00
test-meson-builds.sh devtools: expand meson cross compiling test coverage 2018-07-11 21:14:21 +02:00
test-null.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
validate-abi.sh compat: relicense some files 2018-02-06 23:13:47 +01:00