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 742EE41CFC for ; Tue, 21 Feb 2023 11:02:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6601A431B0; Tue, 21 Feb 2023 11:02:33 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2051.outbound.protection.outlook.com [40.107.102.51]) by mails.dpdk.org (Postfix) with ESMTP id 28FDA406A2; Tue, 21 Feb 2023 11:02:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gKG3VT6htZcSRhlr6a+9auYqwzZ5dqzZWnLgDUmwJAorJY/XiDNClBAISSclv0Z0IeodqbbxeFj9I9Kt7RTfoypZnrYbMtnz2mEegmxdktbi5ZxGYTeTg9r0CsYy7mha2zBRMqaSe5yVPRJr2pmf/+Nclu57LFE0ZQ6NsLC6s6kk7/IpoJzjFmlb25ED9Ydh7Oi62TCIWhEeJjZcDCSHyMtxR9uLB364jv+127Xl4Q9d4F2VfIYbFrolVfEPb1jyXH8wb2NNj0PkgobFuPa+imYZkrGOKPGZyH0vre85eGl5w0sLh/1KXGuk9uSTMcnIPk7jqm/b1q5uD4Kvw7IFkQ== 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=Iw5v253zqLz6S14n9pSKcgqIKjbyVC8PkbmMhOw+Pp0=; b=Y108HM/VKvDTDzrd8Wc9u93I5n2lszv21M/+Jvurt4Fx22rpD45M6yK56j16ivZvPzfqBuKfPuBMUSVtSak4zUt/dInXuu/ujt9Dhppm7jF90QijoHGZb//nmoxI0ZBfO7VB8bEqw7EbqfwYv2ri0itLS8WILVOSH4d+m5wh0WvVO72bufWvGkOUYih9rI5ssZ2YFTGtuqMUSoyB5LA+CsKZSAR4sbtIhNR3DIrOjyHLEBLn6S5B5s+BbXBu5xFn5onKMr/308BPCIQyyHV4v1o+EuzCZmxYLihGCcwVg16f8O/ypBpbsMNl+U98I7xFcC6izxyDi++AQZ9xh0WeqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=dpdk.org 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=Iw5v253zqLz6S14n9pSKcgqIKjbyVC8PkbmMhOw+Pp0=; b=l6j/VIY4Dwy2XyPnnqLGG9RmeZJXo4TClRE9pkyx9iRFb5Y4koiyGSSXV7egAqWzQnFInHg2qMf2IL0NIcEMhPkOZNoFOq8kM2RfLSQtfcxO6AVrTOUyTLOQoguirgIJe6mL/QH8u9wSLPHD46VfKVL6mXW/lT+lMvqFgRi0GfqcxyfTESfLF5cfITUAPUF07q7JZx5zDO6g3fhRtNkMGKG7jN5cMycn/Z6g5kk64/OhfAgQ21g9SRbPVMMqw8HDXS4kjXFpXKXaivjeQq3FvxHSz/kcwXsgAKXtdFdQM/Dgodpw8Pir5X+pgYoZut1UQO3UB2dVCmN8GicSijTQng== Received: from BN0PR04CA0034.namprd04.prod.outlook.com (2603:10b6:408:e8::9) by CH3PR12MB8547.namprd12.prod.outlook.com (2603:10b6:610:164::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 10:02:29 +0000 Received: from BN8NAM11FT107.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e8:cafe::31) by BN0PR04CA0034.outlook.office365.com (2603:10b6:408:e8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20 via Frontend Transport; Tue, 21 Feb 2023 10:02:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by BN8NAM11FT107.mail.protection.outlook.com (10.13.176.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20 via Frontend Transport; Tue, 21 Feb 2023 10:02:28 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 21 Feb 2023 02:02:16 -0800 Received: from nvidia.com (10.126.231.37) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 21 Feb 2023 02:02:13 -0800 From: Rongwei Liu To: , , , , CC: , , gaodaxue , Aman Singh , Yuying Zhang Subject: [PATCH v2] app/testpmd: fix flex item compilation error Date: Tue, 21 Feb 2023 12:02:01 +0200 Message-ID: <20230221100201.361765-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To drhqmail201.nvidia.com (10.126.190.180) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT107:EE_|CH3PR12MB8547:EE_ X-MS-Office365-Filtering-Correlation-Id: 61cbe121-425a-4abf-ac83-08db13f2bdd7 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1u9kC1OL3YZ0BoStv3qOcB7rmN3ZiHp3IxHybeXhAgCD793Fq9sjX72SJrzCLQzyB+l65vJbqGkN+gxPWXgwPIhJ6r5OJnHLZeWyqgFHaERSb/G8lvvsuFZtmQJ1G67FQ/BV/5g0nntXc+aFD/duPgGiIN5VsX5Qm7KSewhx7KH4ePSGj3aPH3econ/RK75iUreAFmT7ab7EYgu5+W5aTKUc6ekf/lBI8C8JZb8jY0BytBDRlA+pXxXSvVEzvt6q7PeYAtTg/AHvTPo2fuyWOFRko6wMXOHYRyDSkwG15I4DA6RK6qlJyT/wDu9D8APnLOl+/WL/f/TBgKKxif66SjOvCLaSJ8jc9fIarNc58W2VhxkqOL/j+/2jq0R6IwYMtmIAFfFyHSfmquLY4zyaefOStOFFG0bNz5Ll3lH6jrv8ar9A143lP/bAexqWmjrByhL+EsgWZ466t+KMoD9UEvbNjdULNkArSkeR820jpF3tUPIP5ruOYt8uBE89dW/9cUyFgx515bgmZq10hBrNHShSe7Ltoe9Wf+rNM93qO0fKUn2H3vuEtIVBjzkjI02JNf8AORhd/derCdkOmfNPUQFBkrTU1d5/7YQi9nUB8N3SL8EA/CQteiamf8FzGTzWdLxvIZ8K+m+epeWb+YVPJ37AF3DjqiwQuaTOpGYd5ykBzxQLRvmStF3PEbC0yjZhguFGRcxtdgrQBlh75OKOKsSzfw8Rzm8tG56HYcDvNbk= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(346002)(376002)(39860400002)(451199018)(36840700001)(40470700004)(46966006)(83380400001)(316002)(34070700002)(36860700001)(86362001)(356005)(82740400003)(55016003)(40460700003)(40480700001)(7636003)(8676002)(4326008)(70206006)(70586007)(2906002)(478600001)(4744005)(7696005)(110136005)(54906003)(41300700001)(5660300002)(8936002)(36756003)(47076005)(82310400005)(336012)(426003)(2616005)(26005)(1076003)(186003)(16526019)(6286002)(6666004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2023 10:02:28.9067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 61cbe121-425a-4abf-ac83-08db13f2bdd7 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT107.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8547 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 When configuring meson with option "--optimization=1", gcc complains "maybe-uninitialized" warning and it was treated as error since Werror is enabled. Assign fp to NULL at declaration can avoid this. Bugzilla ID: 1163 Fixes: c8e25fbf1440 ("ethdev: add flow flex modify") Cc: stable@dpdk.org Reported-by: gaodaxue Signed-off-by: Rongwei Liu --- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index f1991a5a9a..9309607f11 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -8992,7 +8992,7 @@ parse_vc_modify_field_level(struct context *ctx, const struct token *token, unsigned int size) { struct rte_flow_action_modify_field *action; - struct flex_item *fp; + struct flex_item *fp = NULL; uint32_t val; struct buffer *out = buf; char *end; -- 2.27.0