From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 40C6A424C3; Wed, 12 Jun 2024 17:05:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB80040F1A; Wed, 12 Jun 2024 17:03:36 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 216A340E42 for ; Wed, 12 Jun 2024 17:03:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204613; x=1749740613; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b+BbRsRXRqsk3mkCPb8B0eUoY6/YWeBcFERvxbFFgPM=; b=Wi5hmu/J6IoYrPaYIZVG8+1AEdK0UGPke//7NuRjCfJAHpETbh3XroF7 uM2WH6GNzcJkBQT8Sp5u2wF6lI6RBBUpvXhGLuFNEcFNThroHl98e7XV2 9G5UWWid4pK/VOGMwwQxButpPqVtDAphkAcSrIvPInQ95KPa4KYKMIqCt HwaPq8Mp3DYmn1OqtRYpG3kjbDrOf+lfD8dPFK3/Wo8kekUmfGk0zh3jq gdpW5MKGoLJigL7uxjfs9mWKADHSTwMnNuJP4DW4c78eWGcwoVSxgk8w+ o50glOb7Fm7PUnut3Kj693YVjdHZkMuFu0yaKUtz/gndnbSPWsOerQ98o w==; X-CSE-ConnectionGUID: z1/HYJMGTX+zeAqPTNtI5A== X-CSE-MsgGUID: QHvpFtH/Tdi0u1QyHYoKiw== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459133" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459133" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:03:32 -0700 X-CSE-ConnectionGUID: MaSPyOH7QlGFVLi5n0Accg== X-CSE-MsgGUID: tEWDtAs2T/qbYnbHMfvTJg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39924871" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:03:31 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Fabio Pricoco Subject: [PATCH v2 010/148] net/ice/base: fix undefined variables Date: Wed, 12 Jun 2024 16:00:04 +0100 Message-ID: <539a563bcf649b0dd285934fe8a3d9b24013d2e8.1718204528.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Ian Stokes Initialize some variable to avoid "variable might be not defined" warning. This is due to the fact that for QV, sometimes alternative fragments of code are being executed exclusively thanks to use of goto, which some compilers cannot handle correctly. Signed-off-by: Fabio Pricoco Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_switch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 0c13b12faa..fbfc92f294 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -5768,7 +5768,7 @@ ice_cfg_dflt_vsi(struct ice_port_info *pi, u16 vsi_handle, bool set, u8 direction) { struct ice_fltr_list_entry f_list_entry; - struct ice_sw_recipe *recp_list; + struct ice_sw_recipe *recp_list = NULL; struct ice_fltr_info f_info; struct ice_hw *hw = pi->hw; u8 lport = pi->lport; @@ -10091,7 +10091,7 @@ int ice_replay_vsi_all_fltr(struct ice_hw *hw, struct ice_port_info *pi, u16 vsi_handle) { - struct ice_switch_info *sw; + struct ice_switch_info *sw = NULL; int status; u8 i; -- 2.43.0