From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 783E82C5 for ; Fri, 7 Apr 2017 10:15:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491552930; x=1523088930; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C2Ttj8R2V5Nt78JT/wxyBd8wgWdLx7NZoW/Ra09dDIM=; b=S/DNebpzPfcMufkhQHrQTSm3V2lhgo55jRiLHNWBTavpMuew6sVfe5u7 M02j4QOySQnXqlQG+OhyRyPho078HQ==; Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Apr 2017 01:15:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,164,1488873600"; d="scan'208";a="953273625" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by orsmga003.jf.intel.com with ESMTP; 07 Apr 2017 01:15:29 -0700 From: Yuanhan Liu To: Nelio Laranjeiro Cc: Yuanhan Liu , Olivier Matz , dpdk stable Date: Fri, 7 Apr 2017 16:11:58 +0800 Message-Id: <1491552724-3034-41-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1491552724-3034-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1491552724-3034-1-git-send-email-yuanhan.liu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/mlx5: fix an uninitialized variable' has been queued to LTS release 16.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 08:15:31 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 2e86ee962ff4f897ec839e2c97da5d428353bc45 Mon Sep 17 00:00:00 2001 From: Nelio Laranjeiro Date: Thu, 6 Apr 2017 11:16:32 +0200 Subject: [PATCH] net/mlx5: fix an uninitialized variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 4e66a6fef321d8015f6bde1aac5018c9ec91721c ] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since patch "mbuf: structure reorganization" the compiler complains sometimes (in some conditions): .../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") Signed-off-by: Nelio Laranjeiro Acked-by: Olivier Matz --- drivers/net/mlx5/mlx5_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 1acdfd4..58926e3 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -1291,7 +1291,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) &(*rxq->cqes)[rxq->cq_ci & cqe_cnt]; unsigned int i = 0; unsigned int rq_ci = rxq->rq_ci << sges_n; - int len; /* keep its value across iterations. */ + int len = 0; /* keep its value across iterations. */ while (pkts_n) { unsigned int idx = rq_ci & wqe_cnt; -- 1.9.0