DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: dpdk-dev <dev@dpdk.org>,
	Kishore Padmanabha <kishore.padmanabha@broadcom.com>,
	david.marchand@redhat.com, ferruh.yigit@intel.com,
	andrew.rybchenko@oktetlabs.ru
Subject: Re: [dpdk-dev] [PATCH v2] net/bnxt: fix build failure
Date: Fri, 09 Jul 2021 22:39:39 +0200	[thread overview]
Message-ID: <3873097.bDWhCI1HLX@thomas> (raw)
In-Reply-To: <CACZ4nhuBv0PfU=qo81etoETchTJvx0926c7RT-pGraWdHV5gBw@mail.gmail.com>

09/07/2021 20:38, Ajit Khaparde:
> On Fri, Jul 9, 2021 at 8:37 AM Ajit Khaparde <ajit.khaparde@broadcom.com>
> wrote:
> 
> > Fix build failures because of uninitialized variables.
> >
> > ../drivers/net/bnxt/tf_ulp/ulp_mapper.c: In function
> > ‘ulp_mapper_index_tbl_process’:
> > ../drivers/net/bnxt/tf_ulp/ulp_mapper.c:2252:43: error: ‘*(unsigned int
> > *)((char *)&glb_res + offsetof(struct bnxt_ulp_glb_resource_info,
> > resource_func))’ may be used uninitialized in this function
> > [-Werror=maybe-uninitialized]
> >  2252 |         struct bnxt_ulp_glb_resource_info glb_res;
> >       |                                           ^~~~~~~
> > ../drivers/net/bnxt/tf_ulp/ulp_mapper.c:2252:43: error:
> > ‘glb_res.resource_type’ may be used uninitialized in this function
> > [-Werror=maybe-uninitialized]
> >
> > ../drivers/net/bnxt/tf_core/dpool.c: In function ‘dpool_defrag’:
> > ../drivers/net/bnxt/tf_core/dpool.c:95:18: error: ‘index’ may be used
> > uninitialized in this function [-Werror=maybe-uninitialized]
> >    95 |         uint32_t index;
> >       |                  ^~~~~
> >
> > Fixes: 05b405d58148 ("net/bnxt: add dpool allocator for EM allocation")
> >
> > Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
> > Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> 
> Patch applied to dpdk-next-net-brcm for-next-net branch. Thanks

Pulled in main with additional info:
	seen on Fedora Core 34 (GCC 11)




  reply	other threads:[~2021-07-09 20:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08 22:49 [dpdk-dev] [PATCH] " Ajit Khaparde
2021-07-09  8:48 ` Thomas Monjalon
2021-07-09 14:41   ` Ajit Khaparde
2021-07-09 15:37     ` [dpdk-dev] [PATCH v2] " Ajit Khaparde
2021-07-09 18:38       ` Ajit Khaparde
2021-07-09 20:39         ` Thomas Monjalon [this message]
2021-07-09 15:02   ` [dpdk-dev] [PATCH] " Lance Richardson

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=3873097.bDWhCI1HLX@thomas \
    --to=thomas@monjalon.net \
    --cc=ajit.khaparde@broadcom.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=kishore.padmanabha@broadcom.com \
    /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).