From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=hoye21928RDN3Rnbi1Vt55Qo6UyjpXamBQayTO1Xnww=; b=FI4AFFkuUih6ER+IiqmTfEqYcsK1wQ6c/1GJ6ZEQbWeys6G9+bose4ryAPNVU0kFr2 wPWL3dc30//JI/eOuS1hKxwlfEjr1jLT8v6YPNtJ8dOEyN+GwjuBD5wasDzj8gXo6Bxx chjNNIHT/75j8+kugSaojaZul33OIZm9XG/WH00N77gw8j3HQ8IZhR4R1N8aEVYnqT4b qwHNAWMTie7cpPxoslGhEqZd0S/PkWaPv34F6VxU9TBqYGZAKhLtGqCSWNk+xHnoH4fZ 67GGQQKVijOyb7MgpBYpU/5Eib9OhK1NsWpK7GTV5Gm5fqHtq8pqC+vZJBrIbtE1OiHj bMEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=hoye21928RDN3Rnbi1Vt55Qo6UyjpXamBQayTO1Xnww=; b=TerzsOB3ym2+AYiOZMhpAX3AOjqow5Og4HY/08daYzjUKWGtzBBSriW6evvbMp6NOF jk2L2WZL/tO5894wbTwcw3HTggnMgmlvtZhsEz4/1o7eRhnFqczpjN+EmsMhohxKQQTP ihqnd+o/A5RudACKWm+BJPbuPxt4siUlO61yvwIzjg8si3vkTSbOzXb1968Lk0MDNS6X RKWGA88LBmnP9XnylyR/4NRwsJoryc84TxSMMfiXHNBf6MCEzG9RJ/+HOnRSV2nz+ixB F1ps6B7hQ3+UpyNxKXS5vDRG8XylitiVRmPbjiBfW5GKAe5b8fv70iIcSV5LvhJ9bm7R djUg== X-Gm-Message-State: AFeK/H3m4Q/xIpo0iY90Zcha4RpiYTSq1NFR1hDhGC1R7VPsGT/9lIXy3CsV9f5k8Zxs0kl3 X-Received: by 10.223.182.136 with SMTP id j8mr24625938wre.176.1491476792180; Thu, 06 Apr 2017 04:06:32 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id n5sm1989601wmf.14.2017.04.06.04.06.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Apr 2017 04:06:31 -0700 (PDT) From: Thomas Monjalon To: Nelio Laranjeiro Cc: dev@dpdk.org, Ferruh Yigit , Adrien Mazarguil , Olivier Matz , stable@dpdk.org Date: Thu, 06 Apr 2017 13:06:30 +0200 Message-ID: <2011142.xmeUg0X0rg@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <4b9e3b9e3328d43d5766a39391695e704298d04f.1491470160.git.nelio.laranjeiro@6wind.com> References: <4b9e3b9e3328d43d5766a39391695e704298d04f.1491470160.git.nelio.laranjeiro@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix an uninitialised variable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 11:06:32 -0000 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.