Skip to contentSkip to conversation

net/bnxt: fix compilation

PATCH Applied Mark Kavanagh 3 participants 6 messages Oct 9, 2017 – Oct 10, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bnxt: fix compilation

As of 5ef3b79fdfe6f, compilation of DPDK fails with the following error message:
"bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]".

Resolve this by initializing 'vnic' to NULL;

Fixes 5ef3b79fdfe6f ("net/bnxt: support flow filter ops")
---
 drivers/net/bnxt/bnxt_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bnxt/bnxt_filter.c +1 -1
index d470be2..9f171fd 100644
@@ -906,7 +906,7 @@ struct bnxt_filter_info *
 {
 	struct bnxt *bp = (struct bnxt *)dev->data->dev_private;
 	struct bnxt_filter_info *filter;
-	struct bnxt_vnic_info *vnic;
+	struct bnxt_vnic_info *vnic = NULL;
 	struct rte_flow *flow;
 	unsigned int i;
 	int ret = 0;
Signature · 1 line
1.9.3
#1 lore raw
Quoted 17 lines

-----Original Message-----
From: stable [mailto:[email protected]] On Behalf Of Mark Kavanagh
Sent: Monday, October 9, 2017 3:00 PM
To: [email protected]
Cc: [email protected]; Yigit, Ferruh <[email protected]>; [email protected]; Kavanagh, Mark B <[email protected]>
Subject: [dpdk-stable] [PATCH] net/bnxt: fix compilation

As of 5ef3b79fdfe6f, compilation of DPDK fails with the following error message:
"bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]".

Quoted 4 lines

Resolve this by initializing 'vnic' to NULL;

Fixes 5ef3b79fdfe6f ("net/bnxt: support flow filter ops")

Hi Mark,

You don't need to cc stable, since you are fixing code that was sent in this release. Only fixes for patches sent in previous DPDK versions need to be applied to the stable repo.

Regards,
Pablo

#2 lore raw
Quoted 29 lines

From: De Lara Guarch, Pablo
Sent: Monday, October 9, 2017 3:15 PM
To: Kavanagh, Mark B <[email protected]>; [email protected]
Cc: [email protected]; Yigit, Ferruh <[email protected]>; [email protected]; Kavanagh, Mark B <[email protected]>
Subject: RE: [dpdk-stable] [PATCH] net/bnxt: fix compilation

Quoted 15 lines

-----Original Message-----
From: stable [mailto:[email protected]] On Behalf Of Mark Kavanagh
Sent: Monday, October 9, 2017 3:00 PM
To: [email protected]
Cc: [email protected]; Yigit, Ferruh <[email protected]>; [email protected]; Kavanagh, Mark B <[email protected]>
Subject: [dpdk-stable] [PATCH] net/bnxt: fix compilation

As of 5ef3b79fdfe6f, compilation of DPDK fails with the following error message:
"bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]".

Quoted 4 lines

Resolve this by initializing 'vnic' to NULL;

Fixes 5ef3b79fdfe6f ("net/bnxt: support flow filter ops")
Quoted 6 lines

Hi Mark,

You don't need to cc stable, since you are fixing code that was sent in this release.
Only fixes for patches sent in previous DPDK versions need to be applied to the stable repo.

Thanks for the clarification Pablo - makes sense.

Removing [email protected] from this thread.

Cheers,
Mark

Quoted 3 lines

Regards,
Pablo

Applied
#3 lore raw
In reply to Mark Kavanagh
Quoted 11 lines · Mark Kavanagh

As of 5ef3b79fdfe6f, compilation of DPDK fails with the following error message:
"bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]".

Resolve this by initializing 'vnic' to NULL;

Fixes 5ef3b79fdfe6f ("net/bnxt: support flow filter ops")

Applied to dpdk-next-net/master, thanks.

Can you please provide compiler and version information?
I get the commit for now and will update it later with that information.

#4 lore raw
Quoted 17 lines

From: Yigit, Ferruh
Sent: Monday, October 9, 2017 6:34 PM
To: Kavanagh, Mark B <[email protected]>; [email protected]
Cc: [email protected]
Subject: Re: [PATCH] net/bnxt: fix compilation

Quoted 10 lines · Mark Kavanagh

As of 5ef3b79fdfe6f, compilation of DPDK fails with the following error message:
"bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]".

Resolve this by initializing 'vnic' to NULL;

Fixes 5ef3b79fdfe6f ("net/bnxt: support flow filter ops")
Quoted 6 lines
Quoted 1 line

Applied to dpdk-next-net/master, thanks.

Can you please provide compiler and version information?
I get the commit for now and will update it later with that information.

Thanks Ferruh - compiler info is as follows:

gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7)

Best,
Mark

#5 lore raw
Quoted 19 lines · Mark B
Quoted 19 lines

From: Yigit, Ferruh
Sent: Monday, October 9, 2017 6:34 PM
To: Kavanagh, Mark B <[email protected]>; [email protected]
Cc: [email protected]
Subject: Re: [PATCH] net/bnxt: fix compilation

Quoted 11 lines · Mark Kavanagh

As of 5ef3b79fdfe6f, compilation of DPDK fails with the following error message:
"bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]".

Resolve this by initializing 'vnic' to NULL;

Fixes 5ef3b79fdfe6f ("net/bnxt: support flow filter ops")
Quoted 8 lines
Quoted 4 lines

Applied to dpdk-next-net/master, thanks.

Can you please provide compiler and version information?
I get the commit for now and will update it later with that information.

Thanks Ferruh - compiler info is as follows:

   gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7)

Updated commit log, thanks.