DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Cc: dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>,
	Adrien Mazarguil <adrien.mazarguil@6wind.com>,
	Olivier Matz <olivier.matz@6wind.com>,
	stable@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix an uninitialised variable
Date: Thu, 06 Apr 2017 13:06:30 +0200	[thread overview]
Message-ID: <2011142.xmeUg0X0rg@xps13> (raw)
In-Reply-To: <4b9e3b9e3328d43d5766a39391695e704298d04f.1491470160.git.nelio.laranjeiro@6wind.com>

2017-04-06 11:16, Nelio Laranjeiro:
> Since patch "mbuf: structure reorganization" the compiler complains
> 
>  .../drivers/net/mlx5/mlx5_rxtx.c: In function ‘mlx5_rx_burst’:
>  .../drivers/net/mlx5/mlx5_rxtx.c:2082:17: error: ‘len’ may be used
> uninitialized in this function [-Werror=maybe-uninitialized]
> 
> len is not initialised as it will be at the first segment of a received
> packet, but it remains hard for the compiler to determine it.
> 
> Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support")
> 
> Cc: stable@dpdk.org
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>

Applied, thanks

It is important to note that we see this error only after the mbuf rework
of 17.05, only with GCC, and only when debug is enabled.

      reply	other threads:[~2017-04-06 11:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-06  9:16 Nelio Laranjeiro
2017-04-06 11:06 ` Thomas Monjalon [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=2011142.xmeUg0X0rg@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=adrien.mazarguil@6wind.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=nelio.laranjeiro@6wind.com \
    --cc=olivier.matz@6wind.com \
    --cc=stable@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).