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 71049A0548; Thu, 4 Nov 2021 13:23:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08322426F8; Thu, 4 Nov 2021 13:23:30 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2052.outbound.protection.outlook.com [40.107.244.52]) by mails.dpdk.org (Postfix) with ESMTP id B017B411A4 for ; Thu, 4 Nov 2021 13:23:28 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZoVl78hgzQ3qurUJBjUFprceMZSEN/CLBEUyUm8Gj4Jv3XulFAIfu6XGHocCAHaZ9K9484+ly08yJiRKFqSoVTAzTx/l8kjiUrZCJpORGufPT7YIbN7wSeaDenhYhctAnPuQBtvqDbSonnBNPmne8tuaPhvbvthJXFBcNc1rgfUJHUqfywyogH+EHpSKuPuC+Schs6toI9uZfvQRdn557vRbD1Uz7o46mHYNPqJVXXzp5MumAvkNWZ5XD0diXK+w0YTJZKTDuZKFOKB0QRdzJS2R02jGq1pjxAmzFco/oD8u3vxzvdtjeLkwfcOgXmSTGkaxdTPtV8nHd6Hvxfyj1w== 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=k37YKp6hngrg3OXaS4yyDX4tiVNPc3gjg57tMnICWHM=; b=antyf/n6lr7QyYPXuEWu+yTjJYAUduwb5RVMvZYgAMopruo6KStdUqo5rpAbhPJy5xKYxgDH7BuwOhhtivr/X9WvyZt0NiWVQZiPkextr3tOOilKJylJDQiQnGJMzsJq6xCtXF5rsvwA+4tRftz7O0CR0KfixMO8YkllQ6Y+XE9WIaxi6kAta6KG7C2nd/m4o+gI3W4PKQo3D2/guN05WDPiFfsysUUN4py3sMWN/IZUwk5hYU0iC8MwJhbwY0ctmt6Tu0Mx5MxJ4dXk/9Ip7gWHIdZvQIICZBWN08QN/pU3wcD78aXOpF5S9B65hynkABZGhsCsIcRdW9PNgMqN5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=k37YKp6hngrg3OXaS4yyDX4tiVNPc3gjg57tMnICWHM=; b=QWq//hxEE0jfbKLBbvYrGAnYSfgEzucXDCrm5DHJ7MFXp/wpmzGA7/wp6eKG/yt/zDAz5QBX932eXTRuiZH2u/zp6afFDEXrzRisRconSyZ1xX1eRxK1GSI+rkGcKyMIuTil2naOIW/NcFMuHzAxuz0WCOa1XNEp0EG4HqedE8LxR4feQvb9zdgEvA2al4YEA5aIZO3ObftuIj5T6m/Sj2wCOph2H72eKVefZOmyiqMQLiaAsIYMFLlqOUyKoFQb7cs4xD0/HOwgb9oAYVsDipK0VEw5QTQDXJj+4ZV46lnhE1BbaKxSGHff4ccdDaPe2mZ42tb3udtdsFYRMZRpPQ== Received: from DS7PR03CA0182.namprd03.prod.outlook.com (2603:10b6:5:3b6::7) by BYAPR12MB2949.namprd12.prod.outlook.com (2603:10b6:a03:12f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.20; Thu, 4 Nov 2021 12:23:25 +0000 Received: from DM6NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b6:cafe::e8) by DS7PR03CA0182.outlook.office365.com (2603:10b6:5:3b6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Thu, 4 Nov 2021 12:23:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT066.mail.protection.outlook.com (10.13.173.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Thu, 4 Nov 2021 12:23:24 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 4 Nov 2021 12:23:21 +0000 From: Gregory Etelson To: , , CC: , , Matan Azrad Date: Thu, 4 Nov 2021 14:23:08 +0200 Message-ID: <20211104122308.9327-1-getelson@nvidia.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df818202-d9ca-4a5e-8564-08d99f8de60f X-MS-TrafficTypeDiagnostic: BYAPR12MB2949: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nqQ3FSo0b1F+fyjRu5TtqfROyW0dvEXz7Tyc6xbDnK8iV2pa312mproQ25zyiMn0ZvxrCkNcvzQVfgth0Rj2Eam9mCb1VwcGcj0wtAZPQXoRVqGhr39a3H/nlUjiOZf0SdM+LUXvqo4AmhRoJG5+1JucN1uL39gwzmNDk/PCVXft4GNwOgnJMyqjTDaNlE5537FT/rDsyklKRn0wR33sCBDDxTDWt6Fgrvc9H7sBOlkqDOqiwK35HDEXiBnbyyHS9U3e40ZF3gxEhVDbFzy5ul1b1Iww355CdsSh2jK2NSksmr/BfvvtA7VKt0KZs6tVVGtaP+dYoqpuDZ/p2Gc++tV39EJAsMEJg0JV1OzNU6+fbzDTHS6Ft9qfv2PMOfhk6GDX2jfX16whNbTLGoB5Q4WNr6OGjqLAr+HEfSnN43jHJtbW+vXqo9ZKfzi9MIc8HgV0NcQPjjxS/JpidUzvKC/wGTIlru6ZXJrIq4qx8V6VZ+cRcwTjvYck6BP2CgDfiuai9ggv0H+Xs6in1zKNUe4YraC21UcaHrFoArZGBYMpZbma3qUK9dQznO4tmtQ2t6xvfXtwL8HNHl9HkuqnM6sfRhRT25WJASzMBvrqTIIIEJvS9kuyBMCOj0J1Spzcmx2bvNOe3kauXYbfhcmtmsKCM8+b6gNqcM8d3fWRkSWJJlpzBkjPobeCaFi7/Ey7n6OdAeodyvU5mxH4VKw/Vw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(426003)(7696005)(508600001)(70586007)(26005)(83380400001)(8936002)(6286002)(36860700001)(7636003)(110136005)(4744005)(1076003)(2906002)(2616005)(356005)(16526019)(86362001)(5660300002)(55016002)(4326008)(54906003)(336012)(47076005)(6666004)(316002)(107886003)(70206006)(36756003)(186003)(6636002)(8676002)(82310400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 12:23:24.7468 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df818202-d9ca-4a5e-8564-08d99f8de60f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2949 Subject: [dpdk-dev] [PATCH] net/mlx5: fix debug variable initialization 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 Sender: "dev" Use `__rte_unused` macro to mask a debug variable instead of `#ifdef`. This way, if the variable is used in a macro, it does not depend on how the macro is expanded. Fixes: 91f0e029ce5f ("net/mlx5: translate flex item pattern into matcher") Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow_flex.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_flex.c b/drivers/net/mlx5/mlx5_flow_flex.c index bdfa383c45..be0f9821ce 100644 --- a/drivers/net/mlx5/mlx5_flow_flex.c +++ b/drivers/net/mlx5/mlx5_flow_flex.c @@ -222,9 +222,7 @@ mlx5_flex_flow_translate_item(struct rte_eth_dev *dev, const struct rte_flow_item *item, bool is_inner) { -#ifdef RTE_LIBRTE_MLX5_DEBUG - struct mlx5_priv *priv = dev->data->dev_private; -#endif + __rte_unused struct mlx5_priv *priv = dev->data->dev_private; const struct rte_flow_item_flex *spec, *mask; void *misc4_m = MLX5_ADDR_OF(fte_match_param, matcher, misc_parameters_4); -- 2.33.1