DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] crypto/aesni_mb: fix build error with gcc 4.8.5
@ 2019-06-05 14:11 Bruce Richardson
  2019-06-05 16:39 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Richardson @ 2019-06-05 14:11 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson, roy.fan.zhang, stable

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 <bruce.richardson@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] crypto/aesni_mb: fix build error with gcc 4.8.5
  2019-06-05 14:11 [dpdk-dev] [PATCH] crypto/aesni_mb: fix build error with gcc 4.8.5 Bruce Richardson
@ 2019-06-05 16:39 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2019-06-05 16:39 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, roy.fan.zhang, stable

05/06/2019 16:11, Bruce Richardson:
> 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 <bruce.richardson@intel.com>

Applied, thanks



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-05 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05 14:11 [dpdk-dev] [PATCH] crypto/aesni_mb: fix build error with gcc 4.8.5 Bruce Richardson
2019-06-05 16:39 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).