DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ajit Khaparde <ajit.khaparde@broadcom.com>
To: dpdk-dev <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] net/bnxt: address unused variable warning
Date: Fri, 12 Mar 2021 07:22:14 -0800	[thread overview]
Message-ID: <CACZ4nhu2q9Sw1ejr8RzpY6E1fOLF9y18gdB3X3PjAjOWx24qnA@mail.gmail.com> (raw)
In-Reply-To: <20210311233005.67032-1-ajit.khaparde@broadcom.com>

[-- 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)
>

      reply	other threads:[~2021-03-12 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11 23:30 Ajit Khaparde
2021-03-12 15:22 ` Ajit Khaparde [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACZ4nhu2q9Sw1ejr8RzpY6E1fOLF9y18gdB3X3PjAjOWx24qnA@mail.gmail.com \
    --to=ajit.khaparde@broadcom.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).