From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 811BDA054F for ; Wed, 17 Mar 2021 10:31:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 60BA3140EE3; Wed, 17 Mar 2021 10:31:37 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 106A340687; Wed, 17 Mar 2021 10:31:34 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 580175C00EB; Wed, 17 Mar 2021 05:31:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 17 Mar 2021 05:31:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=OieZIqQH1lbAfjdpMg243WsbPG IQd43TLAhlYYZOk5c=; b=fKgtL+2nQWGQBglW+5F1CyTXf2uneYOISx95XT63d5 HqezzBYCZC64/jjB78S050VAj9A4hVrf6h5pGvnuwlp4sIm0A1wXE4S7wcW6Wg9d HIkwcoGtFKJldCDgOYmHKHjeFmi8dHjFBoSPsQiovABcTs9KGgkUzDENqcgvV6oe 2nnTyS92cgnBLqO5w+hbwzLEfMDyopGVcGNVkv968ILr3nOgZg7/hHKou7RxWdyg 4ejqDe2L3PxBn6ocweDURL841VACH5TREQgGJe7cJ2G5vW4/LdV+2VuLJU5lNymu Qey8r4K6KtpKQl3uipdlhmoNkj3/64Pr06CGQhTKV17g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=OieZIqQH1lbAfjdpM g243WsbPGIQd43TLAhlYYZOk5c=; b=ABrjTH4xTtC+ldmBYWoinSU1Kf3ll5JIl lXuW1rVwlBXMy4Ptp7oH2+z/RX+ylnAvOkUVaBPvZj5vwMcdjNqrQM24x3hTPOFk 8+Z9KbrywZyXENor3Q9c98nNGIVyq9PyFYEhbIgwHVfgif6lSDYEIZOwtQUFMUYu wppluXpP7EGCAK5BAE0flUjNc4BVNnOu6ZidXD7iq7Qn9JaOq/hyPGO/xl2E62dP w4aRTwR5FNEgZSIn7rV5q8E/PB8KbtmSn2kMFrfHJlSYzaE4M7K9gNh6a+WJOWwd ibw2wbWZ77izCdiNCXg/wQ3/4diAGhdefFUppXwCaX7AgAt8t69TQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefgedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgrshcu ofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuggftrf grthhtvghrnhepvdelvdduhedvudduveeuvdevheegudelgeeigfejheduhedttdegudff jeeihffgnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhn rdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 5ADCF240054; Wed, 17 Mar 2021 05:31:33 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: stable@dpdk.org, David Marchand , Bruce Richardson Date: Wed, 17 Mar 2021 10:31:24 +0100 Message-Id: <20210317093124.965624-1-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] eal: fix version macro X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" The macro RTE_VERSION is 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 --- lib/librte_eal/include/rte_version.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.1