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 84B6DA0548; Thu, 2 Jun 2022 14:34:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D8EC40691; Thu, 2 Jun 2022 14:34:43 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2063.outbound.protection.outlook.com [40.107.100.63]) by mails.dpdk.org (Postfix) with ESMTP id 0EC434021E for ; Thu, 2 Jun 2022 14:34:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AP9wBEEs13hK4E6MJkEjkl93/3zbjSUTGnB6g2jZUdH5OhBSQz9V+m6hcH2r2ICzh6ZGZG7f/mMxAbNyse0Ox/xqbdn/LrcdC9PbTUscA6tit03E6BcnhyVq5hrWrQ0wDv/eUxLjJG47Ms3HHTVm49Qo2ItnD6X76i3irv5ttps8OhjGd6tt6fTQQFXP9sCX/aklO344hQm5+1/l/+MetM6edo8uHNAF1ssmMoAiqF34JuKgXePwBVOw77qiiIbIt42SqAN705DMB/qZ3dl4WoJf0I+Od3xRZwjj3Ri+ujNiOG468eZI6dQfOmHLGHCowYsxV2P4Ny3vsvgNFZRmBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t7XNkEcfuiGo54L0aDK0tCHgcskqYl/vJVyd5q8MQD4=; b=g6pNPYdgnS9nKPqHm7E61G1qcdLO6dFUWmcWxfA0F7tV8NLcqAzz0k+lYBjJmVRCnK5vSNrrsz7hWqrarw0LfXK7poHSgfcDeJI+HFxuybFWItJAPs2oHf4OL6NfUKXwOwQwP5siXxT93+8YVe9HtHi0/85wXJUQv52ju3MmIdciL5XV+UoplCpWXT0RH1PJV4ELOHDSCudW8UNibah4UM7JZtT84cTSm7ylUnZIVlldi2zE81T6GbVLYRRutOFZO5KcLG9E74mEOyXpANIaImSZEmBYWx8vZOzsWYlCNCho+rtiiYUc5T2XemUTdz0iFry2Gt7Xv8QbiSt5hHlhOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t7XNkEcfuiGo54L0aDK0tCHgcskqYl/vJVyd5q8MQD4=; b=L4Qsu7RMqSWoxJVWgkl8T3m5yXQi1vK7j9bmReq5Wtd3DbQ2zlwLBsUMpjY9PY+qm4lvWMmLLtz9jvXrIloD7GUJH2oCKbf1MUsa4NFfs0GF18Hwn3Nj7gPUCzKEFphieUgtcUkuwiGtXtZHRyo6X2GkME2k+e3fexnVC2jCeossek8RUEEAVVcfP7t5VqX5n/aETtB3ALrA/xl8dgZuvt1dw/qiCcPebSRuUuyPTr+DRbNXlAaIjJtwqXmcoTtNkXlVopi8qhPc/uV65w2uKlUj0it5OLcFR5nAVbXXWeMOyQPJt2km4+LbpQoElNoaAL4A+Zg4CHNatgVbBrdF5Q== Received: from BN9PR03CA0063.namprd03.prod.outlook.com (2603:10b6:408:fc::8) by MN2PR12MB3248.namprd12.prod.outlook.com (2603:10b6:208:a9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 2 Jun 2022 12:34:39 +0000 Received: from BN8NAM11FT067.eop-nam11.prod.protection.outlook.com (2603:10b6:408:fc:cafe::3e) by BN9PR03CA0063.outlook.office365.com (2603:10b6:408:fc::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12 via Frontend Transport; Thu, 2 Jun 2022 12:34:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by BN8NAM11FT067.mail.protection.outlook.com (10.13.177.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5314.12 via Frontend Transport; Thu, 2 Jun 2022 12:34:39 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Thu, 2 Jun 2022 12:34:38 +0000 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 2 Jun 2022 05:34:37 -0700 From: Ali Alnubani To: CC: Subject: [PATCH] examples/pipeline: fix build Date: Thu, 2 Jun 2022 15:34:12 +0300 Message-ID: <20220602123412.3271817-1-alialnu@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59c8acf3-be78-4fa6-a5de-08da449442fc X-MS-TrafficTypeDiagnostic: MN2PR12MB3248:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UjKu1vKcBQQBmDwp8BRe5BKW/UIwCZcDaqqMHgXWsXRoi58LxcCPbm0ml9oLEEsOrDR+kvJSnMdiCm5X7UPHmEUBHETVSCbbhVkoVLQUM873zqLPqKP0h18gxGphy8ax8YrL7J7g4CztuYRiISevS4GFwC+zD9EEQDsDVK6JkQE4bXMdcJUR+eTdb6jLypjp2ddqA9Ai1vFR2H1PA7HRK4eQNuAT5xFAw2cAiqqwJVh/od1cp8PtcQHG5Yh5CTwwL8n7Y8axiYyGh8nVswy51/gCTHerWucGWiLqTr5CxZTVj/gVoWQgluSzQrKC07wUAC/kVLr/08gbpsLNnqlqDKqpBAvnZ0oV/P74MLdCooZVcsVj7h1ofpnU0IGhNkXU9N+OXGudNXDWuiBG2ZwDGiLpuTi9/vPxpOEnUgAfWHQ9ljtCexyO5HT/VkzK4G22jQ9TIcwjUGoP49fwohSuN4+2PDyh8MFgR7Kh1+DXiq0k8CuPsNDsQ7nX0mnzN3MVLBP9xpoh0Fe2V/jTCgYmpnk8id4OqVfTXHzaKQuiYxar5re5Q+EJG43rDtgp75whpBwSfZYHjHTj/Ls/oHMUUgyys70XbfUyWZpE2qbJrSEDK+szIyg0jWy/oVbyb+7hdy7e6195I3zRAHw5sK30iz8AIACxZQEDzsO211gvpbJtjr29Q0rGcvyinQW4F0JybXn4Xb47de26WLxQpYsa8Q== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(16526019)(336012)(186003)(36860700001)(4326008)(36756003)(55016003)(82310400005)(81166007)(356005)(1076003)(8936002)(47076005)(83380400001)(426003)(5660300002)(7696005)(508600001)(70586007)(4744005)(8676002)(70206006)(2616005)(2906002)(6666004)(6286002)(6916009)(26005)(316002)(40460700003)(86362001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2022 12:34:39.4174 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59c8acf3-be78-4fa6-a5de-08da449442fc X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT067.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3248 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 This patch fixes the following build failure seen on Ubuntu 16.04 with gcc 5.4.0 because of uninitialized variable: [..] examples/pipeline/cli.c:2853:9: error: 'session_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] [..] Fixes: 172254555f9f ("examples/pipeline: support packet mirroring") Cc: cristian.dumitrescu@intel.com Signed-off-by: Ali Alnubani --- examples/pipeline/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index 0334616bd9..ad553f19ab 100644 --- a/examples/pipeline/cli.c +++ b/examples/pipeline/cli.c @@ -2782,7 +2782,7 @@ cmd_pipeline_mirror_session(char **tokens, { struct rte_swx_pipeline_mirroring_session_params params; struct pipeline *p; - uint32_t session_id; + uint32_t session_id = 0; int status; if (n_tokens != 11) { -- 2.25.1