devtools: fix version variable not initialized

Message ID (mailing list archive)
State New
Delegated to: Thomas Monjalon
Series devtools: fix version variable not initialized |


Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/intel-Functional success Functional PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS

Commit Message

huangdengdui April 17, 2024, 9:32 a.m. UTC
  The version variable is not initialized. Therefore, if the -V option
is not specified, the value of $version is obtained from the context,
which may cause the version map parsing failure.

Fixes: 6edec7f202ac ("devtools: list symbols by version")

Signed-off-by: Dengdui Huang <>
 buildtools/ | 1 +
 1 file changed, 1 insertion(+)


diff --git a/buildtools/ b/buildtools/
index bc3b8d766f..43f276c05f 100755
--- a/buildtools/
+++ b/buildtools/
@@ -5,6 +5,7 @@ 
 while getopts 'S:s:qV:' name; do
 	case $name in