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 31A63A0C45; Fri, 9 Jul 2021 00:49:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A22C74014D; Fri, 9 Jul 2021 00:49:56 +0200 (CEST) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id 22C9340143 for ; Fri, 9 Jul 2021 00:49:55 +0200 (CEST) Received: by mail-pg1-f180.google.com with SMTP id v7so7985641pgl.2 for ; Thu, 08 Jul 2021 15:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=viF0ZsnSErXyXbHqCoSfwbRL6l57lh6nHCPs990BZtc=; b=BmqJplyelx0dV8yuN2LRYKkJG7hgsFgh3yCAWSmEAm6i4EjJrxRKiXI3pjWRTe6MWG NszDwdJ41+98G7qVY3rr3dWRe1O2Mfw+E6E23vfV+JRSTv6Cbnq+/CPIvHzsRtXYkCOa +QW/w6Dty1n7MselD6/yyaOTyoaTZsipyTKzE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=viF0ZsnSErXyXbHqCoSfwbRL6l57lh6nHCPs990BZtc=; b=maWpbSyMdrMv8wZ/udPfRuieEXIkdVaz5UQyTt9qAxC/PZyQT29ftmXso7t757It+J pptl/Y/XyUsndEcgrPfMkRjBtupj3aWPX/0q69+LF3TUsyrG+O683OWc7fnwfNCSlCNM 1DTJOW0WMHldoQuoQ+Vekfznpdq7a823o11BxdcPwwHIioEtw98QnDX4E5IIdOdbzdQb F1ri6Thr3eFokqcXPOS6lMO8Vcy4EhdvQKfrqovXPyXoz+HWh0EsPuVS1SZw7mk3uMhj vgaYcKwIfkYBmXupwi2Rd6WboNwvkAaS6sRtVvrHkDTHur3Fx/DtEteyfMjiUx0h00M9 sUVw== X-Gm-Message-State: AOAM5300e9snuCAYtXLtS/s2VIupbT5OrT2oiCsby7h3mm9UNk+NdAFz KsYYYvGggR7Q+c3yiLCZ4lyoaFh2Lw/wxz/9eu3ckZ2RR/9YxJooQTlXaCFWSmZc7eOo1HQdqN5 2mmGQe8WGexghtrfinWFpVfHmnU+P96krluaBlkZpAl8GKvaCDPq3uMdKE9pFNio= X-Google-Smtp-Source: ABdhPJzaIOfVbHTJJHrgProBKhw0D9MX4H/NefPR1auMmI8VmCT3MfeMb41tUB5hNtUxeGY2bVeFsA== X-Received: by 2002:a63:2dc6:: with SMTP id t189mr34307652pgt.442.1625784593790; Thu, 08 Jul 2021 15:49:53 -0700 (PDT) Received: from C02VPB22HTD6.wifi.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id y3sm3446255pjg.28.2021.07.08.15.49.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jul 2021 15:49:52 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: thomas@monjalon.net, Kishore Padmanabha Date: Thu, 8 Jul 2021 15:49:50 -0700 Message-Id: <20210708224950.39452-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000039918005c6a479fd" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] [PATCH] net/bnxt: fix build failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" --00000000000039918005c6a479fd Content-Transfer-Encoding: 8bit Fix build failures because of uninitialized variable usage. Fixes: 05b405d58148 ("net/bnxt: add dpool allocator for EM allocation") Signed-off-by: Kishore Padmanabha Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/dpool.c | 1 + drivers/net/bnxt/tf_ulp/ulp_mapper.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/dpool.c b/drivers/net/bnxt/tf_core/dpool.c index 0dae42b1bb..145efa486f 100644 --- a/drivers/net/bnxt/tf_core/dpool.c +++ b/drivers/net/bnxt/tf_core/dpool.c @@ -125,6 +125,7 @@ int dpool_defrag(struct dpool *dpool, largest_free_size = 0; largest_free_index = 0; count = 0; + index = 0; for (i = 0; i < dpool->size; i++) { if (DP_IS_FREE(dpool->entry[i].flags)) { diff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.c b/drivers/net/bnxt/tf_ulp/ulp_mapper.c index acd9f996e8..871dbad0fe 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_mapper.c +++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.c @@ -2249,7 +2249,7 @@ ulp_mapper_index_tbl_process(struct bnxt_ulp_mapper_parms *parms, struct tf_free_tbl_entry_parms free_parms = { 0 }; uint32_t tbl_scope_id; struct tf *tfp; - struct bnxt_ulp_glb_resource_info glb_res; + struct bnxt_ulp_glb_resource_info glb_res = { 0 }; uint16_t bit_size; bool alloc = false; bool write = false; -- 2.21.1 (Apple Git-122.3) --00000000000039918005c6a479fd--