From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E49A9A2EFC for ; Tue, 17 Sep 2019 09:59:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D90F21BFF8; Tue, 17 Sep 2019 09:58:16 +0200 (CEST) Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by dpdk.org (Postfix) with ESMTP id 51A8D1BFB2 for ; Tue, 17 Sep 2019 09:58:03 +0200 (CEST) Received: by mail-lf1-f67.google.com with SMTP id d17so2080028lfa.7 for ; Tue, 17 Sep 2019 00:58:03 -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=7jCDBD5xtBN9LxzL+nGbDtGF7tYbSN/1tYB0BWCOYvg=; b=ETEGBuHwxsK9fD+ByAfR9sK6jRF8MEZzqOUT+OpPG/TpIwiRma149rL5pTsnzR31u+ nfie+SDDfjO911lwTC972qIEpNgqio1KSTzp/a84o5kE+LjlvxnMSRVxHSSBz8nwjkgQ J+PhCF2/TQfp3VpgTrgRVMKi400eGnqNtCCZG3TO79xvvSVZFXCSSc+q/Z7p6eYh1VMl AZ526x7+aPTyE2ZVfAcGmHILYzjfs2nI4zMREp0WqcLIW6CEbzRgwTb+gfvBiOun3I15 62u9PQxEO7F9gURMKf3c9dSQI3Z8CrsUudRAQ0yOIXq+vb/6jCtC91XeRSxkqUcv+UtZ FzeA== 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=7jCDBD5xtBN9LxzL+nGbDtGF7tYbSN/1tYB0BWCOYvg=; b=NRNcssBRuBtL+Fj6OK4riq9wxvfYJ7q1OAu7ZWhH9IHaL9teZ4M0wNiI3e1jiDVvc1 kUMpfWMEHQHtrDpZxMrQ1KnwQVEKu+4ZpXON2PFb9GOoNL5Pke5hTzTVLQULux5jJTYD HzHvl7P0EBqHU+nxzQXmbXD7kXkh9P2GUfQ3S6YHC8RU6mypeR6VuDbcvVXJYTx6Ot+g Ty5Rzba3ofzF70IJB3qQHCV5MZIlzrg3s1NBdr8oQ1OVc+zNfk0IWKAIUn2xHab279v3 t4Jr4dWgIgS8GsRU9YVx+yc4qkYWriIDIuk5l4mxVm3fg/7rB0M0+L+C/mQpV5X2khyY FLjQ== X-Gm-Message-State: APjAAAWqRLaI6foIRmMsMAST5d9zmvkQ2eIIxO/XlJ6GFXIfQOKPC/hy fjNAUg8io99PsnHD+XIlKehUMRIDBwhviA== X-Google-Smtp-Source: APXvYqzYXmoYppRDH8divyVlXJC8aQJGWhd/CG8iq7wXXWbLYnmXEAc9/qV6Wi8kDjIcxyPs2ZXr5w== X-Received: by 2002:a19:f707:: with SMTP id z7mr1410546lfe.142.1568707082730; Tue, 17 Sep 2019 00:58:02 -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:02 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org, Wenzhuo Lu Cc: mattias.ronnblom@ericsson.com, stephen@networkplumber.org, Andrzej Ostruszka Date: Tue, 17 Sep 2019 09:57:51 +0200 Message-Id: <20190917075754.8310-8-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 07/10] net/e1000: 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/e1000/base/e1000_82543.c | 2 +- drivers/net/e1000/base/e1000_ich8lan.c | 2 +- drivers/net/e1000/base/e1000_phy.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/e1000/base/e1000_82543.c b/drivers/net/e1000/base/e1000_82543.c index 810899eb6..dfde2a8b9 100644 --- a/drivers/net/e1000/base/e1000_82543.c +++ b/drivers/net/e1000/base/e1000_82543.c @@ -1027,7 +1027,7 @@ STATIC s32 e1000_setup_copper_link_82543(struct e1000_hw *hw) { u32 ctrl; s32 ret_val; - bool link; + bool link = true; DEBUGFUNC("e1000_setup_copper_link_82543"); diff --git a/drivers/net/e1000/base/e1000_ich8lan.c b/drivers/net/e1000/base/e1000_ich8lan.c index accc6ea01..5241cf698 100644 --- a/drivers/net/e1000/base/e1000_ich8lan.c +++ b/drivers/net/e1000/base/e1000_ich8lan.c @@ -5533,7 +5533,7 @@ void e1000_igp3_phy_powerdown_workaround_ich8lan(struct e1000_hw *hw) void e1000_gig_downshift_workaround_ich8lan(struct e1000_hw *hw) { s32 ret_val; - u16 reg_data; + u16 reg_data = 0; DEBUGFUNC("e1000_gig_downshift_workaround_ich8lan"); diff --git a/drivers/net/e1000/base/e1000_phy.c b/drivers/net/e1000/base/e1000_phy.c index 7d08f836f..956c06747 100644 --- a/drivers/net/e1000/base/e1000_phy.c +++ b/drivers/net/e1000/base/e1000_phy.c @@ -1664,7 +1664,7 @@ s32 e1000_copper_link_autoneg(struct e1000_hw *hw) s32 e1000_setup_copper_link_generic(struct e1000_hw *hw) { s32 ret_val; - bool link; + bool link = true; DEBUGFUNC("e1000_setup_copper_link_generic"); -- 2.17.1