From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id BF19F3256 for ; Tue, 20 Jun 2017 13:38:19 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id y7so22259987pfd.3 for ; Tue, 20 Jun 2017 04:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z0eaJLnSOx5ucvMVBR7JWjXvcsVOLntl2jupXxd5MY0=; b=qjfnfiRn2TPYwpCLjU+d2IM68QUHaIO1IHUVweyLP5IP2e9A9HFcG8LU6hZIhdiUlv OwhOVb0YRK2mhqzvm2wpa67vuyLGzXA3tPH3mKokDSsXst6VhiZBOB4OZ7fnrGLmiUl9 6Ks61rOFm49fQfJr69yLX51HAnH8ZQXY7STh+NzwS1o2SxecTyClENX+Xfwl4m1+cyxF MTOEkqSfPsAcJY2sLP2b9ePr6geOhAYa043Ww0abe57yFBQC4oMACkLUsblk/WMqEoGK xTXk18Vz2d8oVrgYJCnJMy0e8KO2jWLrcPfubHzyr0CcKw+ET5MXypoLMi4BIaV2I4nR pH2A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z0eaJLnSOx5ucvMVBR7JWjXvcsVOLntl2jupXxd5MY0=; b=PrlFNn1FCxs6buODKAUSY2WEcTXwTdyDO/SrL1DUG8r9Ha44ajOVUsZz1e1OcMjPe2 OBWNrFca1EoVwbaktTuCT5h+5iu/9hrSU2jauEOQs6m6m8UvyIrQpm3qINMbD7owD0nJ jiBs3F+6yCt8PK0IuPD/oixZnm1f0Xp50pnyMyvkldLYdPFKeGutetOnMC6H9hAwiTzK p7FLxJEAi9e/QPkYeIuUXFLfVOfNvb8gOhqYSII28fY22JKOitEymrDH9p/sBcIlPatb PVeuil4BeVYkjd2ztnq8kVHZQDiuFJWw0rxyMgwBV3lvXcZQcm+FBnqdXgfvsgYGpbS6 XmZQ== X-Gm-Message-State: AKS2vOwj07n/+NfZWPSrDmbTHa9IBaGukHId/kBPwL8jaC1OJKS+xvwn PQ+IFaIOuHJqLyrG X-Received: by 10.99.7.129 with SMTP id 123mr31260312pgh.171.1497958699083; Tue, 20 Jun 2017 04:38:19 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.38.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:38:18 -0700 (PDT) From: Yuanhan Liu To: Ferruh Yigit Cc: dpdk stable Date: Tue, 20 Jun 2017 19:35:44 +0800 Message-Id: <1497958550-13600-32-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/enic: fix build with gcc 7.1' has been queued to stable release 17.05.1 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: Tue, 20 Jun 2017 11:38:20 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 1078f5c66f6e4d3bb13ee921ae44bca30eb80999 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Tue, 13 Jun 2017 17:42:10 +0100 Subject: [PATCH] net/enic: fix build with gcc 7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit a45962823d863890265bd9033be09a33afb6199f ] build error: .../dpdk/drivers/net/enic/base/vnic_dev.c: In function ‘vnic_dev_get_mac_addr’: .../dpdk/drivers/net/enic/base/vnic_dev.c:470:12: error: ‘a0’ is used uninitialized in this function [-Werror=uninitialized] args[0] = *a0; ^~~ ...dpdk/drivers/net/enic/base/vnic_dev.c: In function ‘vnic_dev_classifier’: ...dpdk/drivers/net/enic/base/vnic_dev.c:471:12: error: ‘a1’ may be used uninitialized in this function [-Werror=maybe-uninitialized] args[1] = *a1; ^~~ Fixed by providing initial values. Fixes: 9913fbb91df0 ("enic/base: common code") Signed-off-by: Ferruh Yigit --- drivers/net/enic/base/vnic_dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/enic/base/vnic_dev.c b/drivers/net/enic/base/vnic_dev.c index 84e4840..1cd031a 100644 --- a/drivers/net/enic/base/vnic_dev.c +++ b/drivers/net/enic/base/vnic_dev.c @@ -645,7 +645,7 @@ int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done) int vnic_dev_get_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) { - u64 a0, a1 = 0; + u64 a0 = 0, a1 = 0; int wait = 1000; int err, i; @@ -1021,7 +1021,7 @@ int vnic_dev_set_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) int vnic_dev_classifier(struct vnic_dev *vdev, u8 cmd, u16 *entry, struct filter_v2 *data) { - u64 a0, a1; + u64 a0 = 0, a1 = 0; int wait = 1000; dma_addr_t tlv_pa; int ret = -EINVAL; -- 2.7.4