From patchwork Tue Sep 17 07:57:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Ostruszka X-Patchwork-Id: 59314 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B45011BFFD; Tue, 17 Sep 2019 09:58:18 +0200 (CEST) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by dpdk.org (Postfix) with ESMTP id 3E2A01BFB2 for ; Tue, 17 Sep 2019 09:58:04 +0200 (CEST) Received: by mail-lj1-f195.google.com with SMTP id s19so2446711lji.6 for ; Tue, 17 Sep 2019 00:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TTf3IQTmhcDaYHwMvlCvDyMVaPKkLxWN7c19i9tNUqw=; b=sbMuI8DQC5JAwDLQMrY4TDVmNO04u0kbIkhX8KU5KwAIcYQhLYj5bCXI2/1N2mPmOg QbUiF5rGB2Jx6qFghwkmjQ4x0x3trROnd8Tl2OmC1u8ZbW4Y+K1na/LEVC4EY8t/7zgm WjYFPbZxu+R3dEFhtFhbbIAMFUI5chqU9F6rDyIARUvDwyqV8jf+RU6hTsdQHGCjONnT AFF/1gTGYXa8gUMN7fWds7WqGGSOQaEH2tTx97eUQFgZgOpFHM/PYdwjxiXuYRF1PRFs T5sPzoApCV3dLfqerHGHtW/0mpekDGY785nLU0MEyZLe4jxq0Jp2vQVCiO2OE06Vshwc IWhg== 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; bh=TTf3IQTmhcDaYHwMvlCvDyMVaPKkLxWN7c19i9tNUqw=; b=FZF6gcMJQ1RkWaq9ERVt9xJF/Uuu8ttd1ZGuH+gVBomg5cbyfNbvfOCTmiT1xlZ3CZ YOH6nIg0i0R6hxKEmjvAhSvnqCugLjrKcZ57UsJZSVvYGGFh/9E8HbcbJH2QoM08cm6h 0de3G+k2pcw6810iVCVnr+2gq4PssQwsmuyMGJEE4v/j3e16fi2f8e9rLNPIirbSSs45 yl1WwSuxBhOLX2T6v+j2vgTSOqB3Jp/9a/7QWPiMfAO1vDvq7N19+u7BNf7+z24BnnC+ ABTz0QFJZuuU6eJI56XPA+oOyXaYh0Rz8erWjKJG0hr5cTCl5WzQ4YpgQknNVk/e+LK0 aRMw== X-Gm-Message-State: APjAAAV7FA9v9MvJDx6XQGlxHmZKpjrMAe75UpfsNHwYy6/Hnihh3zFC szDhoASeTzcJyTKg57PBpEfvKerIdHUGQw== X-Google-Smtp-Source: APXvYqzFrW4sSRRN2jQSJMc8l5jF8gX5Di4exazezg/W3afSF4lvQyLAEqCR1FDIsFcOwEJLmqE8Zw== X-Received: by 2002:a2e:878b:: with SMTP id n11mr1085682lji.13.1568707083785; Tue, 17 Sep 2019 00:58:03 -0700 (PDT) Received: from localhost.localdomain (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id g1sm270659ljl.31.2019.09.17.00.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 00:58:03 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org, Beilei Xing , Qi Zhang Cc: mattias.ronnblom@ericsson.com, stephen@networkplumber.org, Andrzej Ostruszka Date: Tue, 17 Sep 2019 09:57:52 +0200 Message-Id: <20190917075754.8310-9-amo@semihalf.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190917075754.8310-1-amo@semihalf.com> References: <20190917075754.8310-1-amo@semihalf.com> Subject: [dpdk-dev] [PATCH v2 08/10] net/i40e: fix maybe-uninitialized warnings for LTO build 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Signed-off-by: Andrzej Ostruszka --- drivers/net/i40e/i40e_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 4e40b7ab5..525a6b69b 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -8376,7 +8376,7 @@ static int i40e_add_vxlan_port(struct i40e_pf *pf, uint16_t port, int udp_type) { int idx, ret; - uint8_t filter_idx; + uint8_t filter_idx = 0; struct i40e_hw *hw = I40E_PF_TO_HW(pf); idx = i40e_get_vxlan_port_idx(pf, port);