]> git.droids-corp.org - dpdk.git/commitdiff
common/cnxk: fix build with -O1
authorTejasree Kondoj <ktejasree@marvell.com>
Wed, 27 Oct 2021 13:12:59 +0000 (18:42 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 28 Oct 2021 12:54:59 +0000 (14:54 +0200)
Fixing build failure with EXTRA_CFLAGS='-O1'.

Fixes: d85f9749f915 ("common/cnxk: add hash generation API")
Reported-by: Longfeng Liang <longfengx.liang@intel.com>
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
drivers/common/cnxk/roc_hash.c

index 092286e41ebb160cba7d56dcf8fb411b6bb48533..4a34c7fbf8a20b245a8b913839641d985261db02 100644 (file)
@@ -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 */