From af5c990935d7cd726ea5f202a36eca04bf0683be Mon Sep 17 00:00:00 2001 From: Tejasree Kondoj Date: Wed, 27 Oct 2021 18:42:59 +0530 Subject: [PATCH] common/cnxk: fix build with -O1 Fixing build failure with EXTRA_CFLAGS='-O1'. Fixes: d85f9749f915 ("common/cnxk: add hash generation API") Reported-by: Longfeng Liang Signed-off-by: Tejasree Kondoj Acked-by: Anoob Joseph --- drivers/common/cnxk/roc_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_hash.c b/drivers/common/cnxk/roc_hash.c index 092286e41e..4a34c7fbf8 100644 --- a/drivers/common/cnxk/roc_hash.c +++ b/drivers/common/cnxk/roc_hash.c @@ -23,7 +23,7 @@ roc_hash_sha1_gen(uint8_t *msg, uint32_t *hash) 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0}; int i; - uint32_t temp; /* Temporary word value */ + uint32_t temp = 0; /* Temporary word value */ uint32_t W[80]; /* Word sequence */ uint32_t A, B, C, D, E; /* Word buffers */ -- 2.39.5