devtools: fix symbol map change check
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Mon, 23 Mar 2020 11:56:13 +0000 (17:26 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 23 Mar 2020 13:19:45 +0000 (14:19 +0100)
commitf08885494f241b115ad66763b585fbfb486d5160
tree5f4c017d9fdbee2ecc6798d4c155f8eff57b0f0f
parent4a3c160742ab4ea7eca7c6e6eec81edbb6906d22
devtools: fix symbol map change check

Fix check symbol change script to detect new diff file when
it is in between  "--- /dev/null" to "b/lib/...".
Current awk line expects line to start with "a/..."
which is not always true for all diffs.
As a result if in_map was '1' earlier, it will not be changed
to '0' and we get check patch errors which are not true.

Fixes: 4bec48184e33 ("devtools: add checks for ABI symbol addition")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Jerin Jacob <jerinj@marvell.com>
devtools/check-symbol-change.sh