From: Thomas Monjalon Date: Wed, 17 Mar 2021 09:18:22 +0000 (+0100) Subject: eal: fix version macro X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=643752207964b2abd0863d9b3dc7522a40469ba0;p=dpdk.git eal: fix version macro The macro RTE_VERSION was broken since updated with function calls. It is a build-time version number, and must be built with macros. For a run-time version number, there is the function rte_version(). Fixes: 5b637a848195 ("eal: fix querying DPDK version at runtime") Cc: stable@dpdk.org Reported-by: David Marchand Signed-off-by: Thomas Monjalon Acked-by: David Marchand --- diff --git a/lib/librte_eal/include/rte_version.h b/lib/librte_eal/include/rte_version.h index 2f3f727b46..736c5703be 100644 --- a/lib/librte_eal/include/rte_version.h +++ b/lib/librte_eal/include/rte_version.h @@ -28,10 +28,10 @@ extern "C" { * All version numbers in one to compare with RTE_VERSION_NUM() */ #define RTE_VERSION RTE_VERSION_NUM( \ - rte_version_year(), \ - rte_version_month(), \ - rte_version_minor(), \ - rte_version_release()) + RTE_VER_YEAR, \ + RTE_VER_MONTH, \ + RTE_VER_MINOR, \ + RTE_VER_RELEASE) /** * Function to return DPDK version prefix string