From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net/mlx5: fix an uninitialised variable Date: Thu, 06 Apr 2017 13:06:30 +0200 Message-ID: <2011142.xmeUg0X0rg@xps13> References: <4b9e3b9e3328d43d5766a39391695e704298d04f.1491470160.git.nelio.laranjeiro@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, Ferruh Yigit , Adrien Mazarguil , Olivier Matz , stable@dpdk.org To: Nelio Laranjeiro Return-path: Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by dpdk.org (Postfix) with ESMTP id A042F108D for ; Thu, 6 Apr 2017 13:06:32 +0200 (CEST) Received: by mail-wr0-f170.google.com with SMTP id g19so12099181wrb.0 for ; Thu, 06 Apr 2017 04:06:32 -0700 (PDT) In-Reply-To: <4b9e3b9e3328d43d5766a39391695e704298d04f.1491470160.git.nelio.laranjeiro@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-04-06 11:16, Nelio Laranjeiro: > Since patch "mbuf: structure reorganization" the compiler complains >=20 > .../drivers/net/mlx5/mlx5_rxtx.c: In function =E2=80=98mlx5_rx_burst= =E2=80=99: > .../drivers/net/mlx5/mlx5_rxtx.c:2082:17: error: =E2=80=98len=E2=80=99= may be used > uninitialized in this function [-Werror=3Dmaybe-uninitialized] >=20 > len is not initialised as it will be at the first segment of a receiv= ed > packet, but it remains hard for the compiler to determine it. >=20 > Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support") >=20 > Cc: stable@dpdk.org > Signed-off-by: Nelio Laranjeiro > Acked-by: Olivier Matz Applied, thanks It is important to note that we see this error only after the mbuf rewo= rk of 17.05, only with GCC, and only when debug is enabled.