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 6E6ED41CFC for ; Tue, 21 Feb 2023 10:37:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6772D431AE; Tue, 21 Feb 2023 10:37:04 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2085.outbound.protection.outlook.com [40.107.220.85]) by mails.dpdk.org (Postfix) with ESMTP id 2F914406A2; Tue, 21 Feb 2023 10:37:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gsySlQbVbfzo7WHfkhBEV4/bY0tMF+UH+4238YX+DOxDUHlGItW9b72GQe1gNRxgpbc7qLJmBE48z7WGlJ3oIUXubCq21WonyhW/ufnXZaNPZBCGGP451OZFPdD0T+Y7orUTVuET2GxAJLU5bUwistXLthM7uUt3RgYjVcrE/o8A9zUBy4U/kTy9X9LmJDUESAuwbmTjlYcWnZdwbd69DwVwTuh950fj3bIOS2I3iilSzZrMftGHOaCrxxVBygFOQiJfNxU41hmxOd67qkUSDwVsFAN3EXfL3m+bpTt08mg3Zb71I8K0L/aJ24IVANZ3VDIbDDxawTVQupu1GwvrrA== 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=fkHafMa8edntHQHcyvp4dX7HVxEboiaIkJRIDGalZHU=; b=bz4sXi2p8eLn0s/mWqHuDmP5Yr9/uh7NvRNs4r64cUDZiVcoCQ+q/0i2DPlrczt91wctgf6DA+g/ox7kYP8XYMi5hMvwxcuOMXzAS/NgmhO+2byQeTMGTbA8Ot8UbSWFEZMoX8DRRk1DivqFSZf0oC3nbtHyjSJJIHaTA3QzF1JElmfrRIb5fuE1nkorB/0qbTQGcfCsx4ksBpGPXcQO3PQfSB4Mb8ktYiM3g1Np31J6xsmjTZwqVf+TBHSIpE5Sef/HV4/D70H86nVTgDovRZb+JPtHYIvSFW+ouUpRqClzjjQ6t9IEmpvLvsM3ajJpTNU683t/pGyhRvX5HKfesg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=fkHafMa8edntHQHcyvp4dX7HVxEboiaIkJRIDGalZHU=; b=ZqIqYunKow+P0P66vLduNM7Z/wgrS/a1bvDoAG33waXphrfgBAKfAO1TJtMlDQCM4P/vRQp2AGK+xEQWS8wp4z9lBCioSoIhfp1S/YGFhvsSl3lDbUHPd0FfZkSakLmz2czbVxZ4VeA3j3Y+xJwf1YgmYucJj9Dbq5m9cIAfqu+Gk7j1FgUETb1eByj6WbhzBSSPt5C1w2lFbeB91v3/XqAQD6MfsTjYQnNlWgsf6OPA4HiHgt89nBXwdQ7ywstdhS+krZugsTTRwypQb9dWsILaF0169GctpbLaLw5aL1WRGWk7wqR4Q90CZ+K44Vj5dNubHwr+WUETnp+q5bPQYg== Received: from DS7PR06CA0021.namprd06.prod.outlook.com (2603:10b6:8:2a::23) by MW4PR12MB7310.namprd12.prod.outlook.com (2603:10b6:303:22c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20; Tue, 21 Feb 2023 09:37:00 +0000 Received: from DS1PEPF0000E648.namprd02.prod.outlook.com (2603:10b6:8:2a:cafe::6c) by DS7PR06CA0021.outlook.office365.com (2603:10b6:8:2a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21 via Frontend Transport; Tue, 21 Feb 2023 09:37:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0000E648.mail.protection.outlook.com (10.167.18.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.14 via Frontend Transport; Tue, 21 Feb 2023 09:37:00 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) 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 01:36:51 -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 01:36:48 -0800 From: Rongwei Liu To: , , , , CC: , , Aman Singh , Yuying Zhang Subject: [PATCH v1] app/testpmd: fix flex item compilation error Date: Tue, 21 Feb 2023 11:36:36 +0200 Message-ID: <20230221093636.344841-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: rnnvmail202.nvidia.com (10.129.68.7) To drhqmail201.nvidia.com (10.126.190.180) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E648:EE_|MW4PR12MB7310:EE_ X-MS-Office365-Filtering-Correlation-Id: f6dbcbbc-3209-4b35-6362-08db13ef2e8a 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: NGOKP0jgjA0rKtR26nkQl69gGHkv2A4ApQqMJX9n9OgLNhZVVYdp5HQl8tVflHdMsCx4gIlb7XaE4kRdDpbd3llXvE3aa1HUi2aST3QR3WAx1+YMPi0VLiiTm42fa/w/TtMYOeIedUiQTFq1oNxsqjtji/gxCjKn1SJ7U0l+sivTaEjFor6zeUkrQs6DAix2ebM/+e2MF6EegOJe35irb7ahsdLGv+gVxH80PSnOqBWxWl+aLNJKjpJ8EDgmbL4JP0e0LI5XWgnscxceO7Ofwe2FgjAGvRlp76SLnAdLiCK70KnlSKbY2T5cnCKt3wS3XQsvQ3swdEHYnfNwJyY7EKUFSsQP4D8c7x6pPsXZ5tfrzH+1gYImS0pFSZubucstQr4FOfyNkM8iQCc1wZWbe5Xnc/JmvFH3udsKG4hQFnrFp0P6Ma0bSnPvNa3pguEeI4bg1k6OPZU1gFHaZufxQ+s2oKqxbWhgIPpZp/E6SPYU+Dun1DYun+zY2joIKwPeqmm9qIDK/ThTY88KpQbREpx8vRMrSnApdQ2Ouq9Y0cYIYcl018/BfEHTalBLp1+xo6QFwfnRkNmOfs4W2NUQT5CEsr2KHzux78XICaRt758vLHj1ewLjplRzRlmV0p4lEeQ5vAq4P6ZbYNsTxPgiGJem2ViVLVrX5iE9oygsfaJjhl3xFIJV0HYtCkYpCaSFknDnT4MpyiMcuiG79JSZyw== X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(376002)(346002)(39860400002)(136003)(451199018)(36840700001)(46966006)(40470700004)(2906002)(26005)(186003)(6286002)(16526019)(41300700001)(356005)(82740400003)(1076003)(6666004)(4744005)(7636003)(5660300002)(36860700001)(2616005)(478600001)(8936002)(316002)(40480700001)(40460700003)(86362001)(70206006)(70586007)(8676002)(336012)(4326008)(7696005)(82310400005)(47076005)(55016003)(426003)(36756003)(110136005)(83380400001)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2023 09:37:00.0739 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6dbcbbc-3209-4b35-6362-08db13ef2e8a 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.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E648.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7310 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. Fixes: c8e25fbf1440 ("ethdev: add flow flex modify") Cc: stable@dpdk.org 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