[dpdk-stable] patch 'net/bnxt: fix compiler warning' has been queued to LTS release 18.11.3

Kevin Traynor ktraynor at redhat.com
Wed Aug 28 15:42:05 CEST 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 09/04/19. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/b6f30413487b41acee99031fa5b2de640ead5b1f

Thanks.

Kevin Traynor

---
>From b6f30413487b41acee99031fa5b2de640ead5b1f Mon Sep 17 00:00:00 2001
From: Ajit Khaparde <ajit.khaparde at broadcom.com>
Date: Wed, 17 Jul 2019 16:11:37 +0530
Subject: [PATCH] net/bnxt: fix compiler warning

[ upstream commit f1a24472930b7325eb8ea2f4d05c48ff81ea06e2 ]

Compiler complains of an uninitialized variable.
Initializing it to avoid the issue.

Fixes: db678d5c2b54 ("net/bnxt: add HWRM VNIC configure")

Signed-off-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
Reviewed-by: Rahul Gupta <rahul.gupta at broadcom.com>
---
 drivers/net/bnxt/bnxt_hwrm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index 53c31baf4..5abd2aba6 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -1416,6 +1416,6 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic)
 	struct hwrm_vnic_cfg_input req = {.req_type = 0 };
 	struct hwrm_vnic_cfg_output *resp = bp->hwrm_cmd_resp_addr;
+	struct bnxt_plcmodes_cfg pmodes = { 0 };
 	uint32_t ctx_enable_flag = 0;
-	struct bnxt_plcmodes_cfg pmodes;
 
 	if (vnic->fw_vnic_id == INVALID_HW_RING_ID) {
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-08-28 14:32:33.515359857 +0100
+++ 0030-net-bnxt-fix-compiler-warning.patch	2019-08-28 14:32:31.653957092 +0100
@@ -1 +1 @@
-From f1a24472930b7325eb8ea2f4d05c48ff81ea06e2 Mon Sep 17 00:00:00 2001
+From b6f30413487b41acee99031fa5b2de640ead5b1f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit f1a24472930b7325eb8ea2f4d05c48ff81ea06e2 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 1a0265f8a..a4e0c2e0c 100644
+index 53c31baf4..5abd2aba6 100644
@@ -22 +23 @@
-@@ -1524,6 +1524,6 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic)
+@@ -1416,6 +1416,6 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic)
@@ -28 +28,0 @@
- 	uint32_t enables = 0;
@@ -29,0 +30 @@
+ 	if (vnic->fw_vnic_id == INVALID_HW_RING_ID) {


More information about the stable mailing list