From patchwork Thu Sep 5 09:32:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Ostruszka X-Patchwork-Id: 58633 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 621E51EF58; Thu, 5 Sep 2019 11:33:00 +0200 (CEST) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id DE64B1EDF5 for ; Thu, 5 Sep 2019 11:32:46 +0200 (CEST) Received: by mail-lj1-f193.google.com with SMTP id t14so1716080lji.4 for ; Thu, 05 Sep 2019 02:32:46 -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=MfRq8BQCu8SVMwKx9cadeWGgCRh4954AR7pTjuBgv5kuArccg7L9imfEaHH71hkGet IvJUb7tUq6UiRbttbHoMMLEj7awA54Msnb0jyHwM7unk8iMF+MBtiHN4gC7HWH9OKu4u VXq3mianu+RLjTDgP0gtCO7KaZUU5vyztldBQZUir1N+dc0eGIHBhabpKhazyJeUMOj+ HrHdvFRi5NDI2kFGN56O1W3tStG9y6ylOB9WwEEPyx+dHWokLJ2P+MWTRn4UUeGUi6ci 04DlDitt8r+wCONW1tXf+5H5vzWU6zZuvAoThf4WdQp6Ws2eetz2WcS1FP9ADtHdmHGR PHAQ== 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=WyCbG9tbFnI1VBPkfMwODjMH4jTQveWqB08T2P/NGGdY601txziwMaa7nygUCF8u/t 7xDHbO8+aoz7EEmaVHINdFyrk5RLKUrxc+bkf3G0sOJTrzxzO9Mz6+yFIDsA5HryEplg G4CrvMNVvfg/aCy4G/DU4VofrUdSzHgznAhhDO+3F/oyMzhS0joIPpyLKolIm8Ogm9+4 FpQz6Y0mIo92mTt2HwdMr8uA61vM32b9uNzIqD/1hFbLpvIL1iT0WVVOcon4kAKXMoNG d4JSwDisz/sdH1ra3yPHCyWQI1WR3kLf3Y0O54X2OZHLNuI973OzEb1FeOKWbM/NzITL G0JA== X-Gm-Message-State: APjAAAVOxVcJXcQSpXl9mJd7BPZ9ND+K/Mj1LNK6Z+Duibo2Bnzc0JtR sHG3KO3HcOrt+JN7KvMoxTOQEiyNIAtrog== X-Google-Smtp-Source: APXvYqySIaTwA/FoWfajAJBkWs1qZdtWYzBW9OUAgA0IYzK7jgityX9yet0SziCPTT0mt02lkylkcA== X-Received: by 2002:a2e:3c14:: with SMTP id j20mr1349610lja.84.1567675966482; Thu, 05 Sep 2019 02:32:46 -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 b25sm363060lfa.90.2019.09.05.02.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 02:32:46 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org Cc: Andrzej Ostruszka Date: Thu, 5 Sep 2019 11:32:37 +0200 Message-Id: <20190905093239.27187-9-amo@semihalf.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190905093239.27187-1-amo@semihalf.com> References: <20190905093239.27187-1-amo@semihalf.com> Subject: [dpdk-dev] [PATCH 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);