From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 6CB98A0096 for ; Wed, 5 Jun 2019 16:16:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 476A51BA96; Wed, 5 Jun 2019 16:16:14 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7DFAD1BA92; Wed, 5 Jun 2019 16:16:12 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2019 07:16:11 -0700 X-ExtLoop1: 1 Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.2]) by orsmga006.jf.intel.com with ESMTP; 05 Jun 2019 07:16:09 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , roy.fan.zhang@intel.com, stable@dpdk.org Date: Wed, 5 Jun 2019 15:11:23 +0100 Message-Id: <20190605141123.35977-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] crypto/aesni_mb: fix build error with gcc 4.8.5 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On CentOS/RHEL 7, we get build errors reported due to a variable being possibly unitialized. Setting a default init value fixes this issue. Fixes: c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros") Cc: roy.fan.zhang@intel.com Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c index 8bcfe79..edb6608 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c @@ -104,7 +104,7 @@ struct aesni_mb_session *sess, const struct rte_crypto_sym_xform *xform) { - hash_one_block_t hash_oneblock_fn; + hash_one_block_t hash_oneblock_fn = NULL; unsigned int key_larger_block_size = 0; uint8_t hashed_key[HMAC_MAX_BLOCK_SIZE] = { 0 }; uint32_t auth_precompute = 1; -- 1.8.3.1