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 162AEA04A3 for ; Tue, 16 Jun 2020 15:51:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9BA691BF85; Tue, 16 Jun 2020 15:51:52 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 1F1501BF7E for ; Tue, 16 Jun 2020 15:51:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592315510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cMEHBHGZH4SzN0xwz3DZQfC1G4sK6gr5URBQfXEvOeA=; b=UyD8J+DTiqFn3v5WZ1POLmHZ7vMlaLGDs10h0vZgIyCxe9CuxB2QPd9n/KLSAoIaHVldsU phz91QfiaKXT2mzVyFLAvX0T2YQnQ5+sha7bYImEPBAxCl9F0QZam84108JnGGpisOyr+g 0AHjBi1+NpJbQKyiHyI3Orvb0/hDCxM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-123-g-M_1P07PiKGtzBcxoao5g-1; Tue, 16 Jun 2020 09:51:48 -0400 X-MC-Unique: g-M_1P07PiKGtzBcxoao5g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C13F487342F; Tue, 16 Jun 2020 13:51:47 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.205]) by smtp.corp.redhat.com (Postfix) with ESMTP id B531D78911; Tue, 16 Jun 2020 13:51:46 +0000 (UTC) From: Kevin Traynor To: stable@dpdk.org Cc: bluca@debian.org, ferruh.yigit@intel.com, Kevin Traynor Date: Tue, 16 Jun 2020 14:51:35 +0100 Message-Id: <20200616135137.8563-3-ktraynor@redhat.com> In-Reply-To: <20200616135137.8563-1-ktraynor@redhat.com> References: <20200616135137.8563-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 18.11 2/4] kni: fix ethtool maybe-uninitialized warnings 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Similar to commit 46136031f191 ("net/e1000: clean LTO warnings") initialize the link variable to squash these maybe-uninitialized false positive warnings in ethtool. Signed-off-by: Kevin Traynor --- kernel/linux/kni/ethtool/igb/e1000_phy.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kernel/linux/kni/ethtool/igb/e1000_phy.c b/kernel/linux/kni/ethtool/igb/e1000_phy.c index b4d363ba28..1510211e3f 100644 --- a/kernel/linux/kni/ethtool/igb/e1000_phy.c +++ b/kernel/linux/kni/ethtool/igb/e1000_phy.c @@ -1587,5 +1587,5 @@ s32 e1000_setup_copper_link_generic(struct e1000_hw *hw) { s32 ret_val; - bool link; + bool link = true; DEBUGFUNC("e1000_setup_copper_link_generic"); @@ -1642,5 +1642,5 @@ s32 e1000_phy_force_speed_duplex_igp(struct e1000_hw *hw) s32 ret_val; u16 phy_data; - bool link; + bool link = true; DEBUGFUNC("e1000_phy_force_speed_duplex_igp"); @@ -1708,5 +1708,5 @@ s32 e1000_phy_force_speed_duplex_m88(struct e1000_hw *hw) s32 ret_val; u16 phy_data; - bool link; + bool link = true; DEBUGFUNC("e1000_phy_force_speed_duplex_m88"); @@ -1845,5 +1845,5 @@ s32 e1000_phy_force_speed_duplex_ife(struct e1000_hw *hw) s32 ret_val; u16 data; - bool link; + bool link = true; DEBUGFUNC("e1000_phy_force_speed_duplex_ife"); @@ -2521,5 +2521,5 @@ s32 e1000_get_phy_info_m88(struct e1000_hw *hw) s32 ret_val; u16 phy_data; - bool link; + bool link = true; DEBUGFUNC("e1000_get_phy_info_m88"); @@ -2596,5 +2596,5 @@ s32 e1000_get_phy_info_igp(struct e1000_hw *hw) s32 ret_val; u16 data; - bool link; + bool link = true; DEBUGFUNC("e1000_get_phy_info_igp"); @@ -2658,5 +2658,5 @@ s32 e1000_get_phy_info_ife(struct e1000_hw *hw) s32 ret_val; u16 data; - bool link; + bool link = true; DEBUGFUNC("e1000_get_phy_info_ife"); @@ -3047,5 +3047,5 @@ s32 e1000_phy_force_speed_duplex_82577(struct e1000_hw *hw) s32 ret_val; u16 phy_data; - bool link; + bool link = true; DEBUGFUNC("e1000_phy_force_speed_duplex_82577"); @@ -3096,5 +3096,5 @@ s32 e1000_get_phy_info_82577(struct e1000_hw *hw) s32 ret_val; u16 data; - bool link; + bool link = true; DEBUGFUNC("e1000_get_phy_info_82577"); -- 2.21.3