DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/bnxt: address unused variable warning
@ 2021-03-11 23:30 Ajit Khaparde
  2021-03-12 15:22 ` Ajit Khaparde
  0 siblings, 1 reply; 2+ messages in thread
From: Ajit Khaparde @ 2021-03-11 23:30 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

Fix a potential unused variable warning when compiling on PPC.

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 drivers/net/bnxt/bnxt_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 3f28e0ea45..b561ff5520 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -3079,7 +3079,7 @@ bnxt_rx_descriptor_status_op(void *rx_queue, uint16_t offset)
 	struct bnxt_rx_queue *rxq = rx_queue;
 	struct bnxt_cp_ring_info *cpr;
 	struct bnxt_rx_ring_info *rxr;
-	uint32_t desc, cons, raw_cons;
+	uint32_t desc, raw_cons;
 	struct bnxt *bp = rxq->bp;
 	struct rx_pkt_cmpl *rxcmp;
 	int rc;
@@ -3101,6 +3101,7 @@ bnxt_rx_descriptor_status_op(void *rx_queue, uint16_t offset)
 #if defined(RTE_ARCH_X86) || defined(RTE_ARCH_ARM64)
 	if (bp->flags & BNXT_FLAG_RX_VECTOR_PKT_MODE) {
 		struct rx_pkt_cmpl *rxcmp;
+		uint32_t cons;
 
 		/* Check status of completion descriptor. */
 		raw_cons = cpr->cp_raw_cons +
-- 
2.21.1 (Apple Git-122.3)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] net/bnxt: address unused variable warning
  2021-03-11 23:30 [dpdk-dev] [PATCH] net/bnxt: address unused variable warning Ajit Khaparde
@ 2021-03-12 15:22 ` Ajit Khaparde
  0 siblings, 0 replies; 2+ messages in thread
From: Ajit Khaparde @ 2021-03-12 15:22 UTC (permalink / raw)
  To: dpdk-dev

[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]

On Thu, Mar 11, 2021 at 3:30 PM Ajit Khaparde
<ajit.khaparde@broadcom.com> wrote:
>
> Fix a potential unused variable warning when compiling on PPC.
>
> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Squashed with previous patch "net/bnxt: fix Rx descriptor status"

https://inbox.dpdk.org/dev/20210311200458.40432-1-ajit.khaparde@broadcom.com/

> ---
>  drivers/net/bnxt/bnxt_ethdev.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
> index 3f28e0ea45..b561ff5520 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -3079,7 +3079,7 @@ bnxt_rx_descriptor_status_op(void *rx_queue, uint16_t offset)
>         struct bnxt_rx_queue *rxq = rx_queue;
>         struct bnxt_cp_ring_info *cpr;
>         struct bnxt_rx_ring_info *rxr;
> -       uint32_t desc, cons, raw_cons;
> +       uint32_t desc, raw_cons;
>         struct bnxt *bp = rxq->bp;
>         struct rx_pkt_cmpl *rxcmp;
>         int rc;
> @@ -3101,6 +3101,7 @@ bnxt_rx_descriptor_status_op(void *rx_queue, uint16_t offset)
>  #if defined(RTE_ARCH_X86) || defined(RTE_ARCH_ARM64)
>         if (bp->flags & BNXT_FLAG_RX_VECTOR_PKT_MODE) {
>                 struct rx_pkt_cmpl *rxcmp;
> +               uint32_t cons;
>
>                 /* Check status of completion descriptor. */
>                 raw_cons = cpr->cp_raw_cons +
> --
> 2.21.1 (Apple Git-122.3)
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-12 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 23:30 [dpdk-dev] [PATCH] net/bnxt: address unused variable warning Ajit Khaparde
2021-03-12 15:22 ` Ajit Khaparde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).