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 D9D07A0093; Wed, 9 Mar 2022 16:57:15 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 686F640395; Wed, 9 Mar 2022 16:57:15 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2047.outbound.protection.outlook.com [40.107.94.47]) by mails.dpdk.org (Postfix) with ESMTP id B0D674013F for ; Wed, 9 Mar 2022 16:57:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PfwPYznvVjSPblX8go/FDGRwjj7QDjoyn8gHbdz6sYBJRQHrfhrR7RS7+4GAnb9dIhYRE2KjUznhU9L4QUm6Q93tPMH9CWf7cby9NWPgQopF/ha+Fzt3I3byT/I1Iql0k89jvcJK3dqHfAM6V5O0fi7PiFj5ks67B9aqqyq/gxQOp4pL/Q37pcDf/KLMXY/6pu+6tZ767SvcIEuxTna5r70/qSWbnYbdCadePRmeOj6U9iNb7TlKDV0LTEdRPSK5dlYEHU8nnYNHhAzxpUlnZ85dJ21g7V/ZmCt9c6mMtKYUYovrC9dRV/R8LI1GqaqP7CfVgA5/1XRFHF8Ea7flQQ== 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=GY47QLLhgrK5SaDc0ujRl6YQyrf2HB5noZK/fIWMkuE=; b=eOy3q6N2Toba2FEksww0DU2Nm8jYcla/GJy8GRYs+FczcoLvtLtKOWwqpU1FH2Ywf8xcRtBWyYsQsKXYovYhB4Z+a/yHWZu+AMGMkPyV3pm2KtLtkcgWovsYf30VkU/WjlO78oHwmgG3tuEpGFBH5GKsEi/1Q2BMYBwcG00bPFAU/HMdHFmpauL7cm7DPTgGoEt10OXPIeMBb/zywsJgq7qUJ1vBDNvEFyc6tumLY8ty7tVSOMJGe/6yE9SEpdkrffnQ9sNKxCIN9sSFezTq1c+VTyNJf/gM8RYMbvi1ArDG+zXD9FHAvEA/XLJ7YpsqlWIJTvYmy6gIYkxUnJeAYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) 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=GY47QLLhgrK5SaDc0ujRl6YQyrf2HB5noZK/fIWMkuE=; b=ReKlcURpqAQjK1vqmCDR+nGppE7M9Akf1AEVVABPXt0zJ+bUhBcZKHGoUIcbocjYZdTV7gph/NDPJ0A2uE6tDguJQPVjiunhv37c82hOyfbapoXoj1Rutzgv2F+Y7KwfTTzQSeO1LW/qlQSp5/bX4DdAuzuqDerF9dNlkJINuY1NXTOvw4I2gXsedmei3RemNA+sxPRor1jq5SNARh8xLOXeHQzbyMzYaX0O1aLZv0rAaD75ojc87qrvs66uJIGkmb07Ie8QvB/9wx7DdLT37j2bNuGXhTDW3IKGY+kC1JseyjfS5XO0HquMucbU5aFDugreoGUDUETw6TOrs3WhFw== Received: from BN9PR03CA0888.namprd03.prod.outlook.com (2603:10b6:408:13c::23) by MWHPR1201MB0239.namprd12.prod.outlook.com (2603:10b6:301:50::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Wed, 9 Mar 2022 15:57:11 +0000 Received: from BN8NAM11FT033.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13c:cafe::4f) by BN9PR03CA0888.outlook.office365.com (2603:10b6:408:13c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.27 via Frontend Transport; Wed, 9 Mar 2022 15:57:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) 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.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.238) by BN8NAM11FT033.mail.protection.outlook.com (10.13.177.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5038.14 via Frontend Transport; Wed, 9 Mar 2022 15:57:10 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 9 Mar 2022 15:57:09 +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.9; Wed, 9 Mar 2022 07:57:08 -0800 From: To: CC: Elena Agostini Subject: [PATCH v1] gpu/cuda: set unused gdrcopy functions arguments Date: Thu, 10 Mar 2022 00:06:50 +0000 Message-ID: <20220310000650.25171-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4b809f8e-4a52-4e0e-7b19-08da01e57883 X-MS-TrafficTypeDiagnostic: MWHPR1201MB0239: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: opBN2nBAhz/tJY8EwVQOok49YboEpeLYfPm/xXjZt/bqSz5ktvfQHe4wVxpjroMWrZIsfFjRsEPIZRvKLiX+aLh2VeqA7VnaIlqlXcmM9owII9WGh/GX/z23Le5r/VkgsCGngj/YVBOwXesVeeyKOEzms+05Xjqo/8kkxheSIi9wYs5CHoHYUjR1KzU9CNwt+6uqwwbO0RX87+gC64UefZHhlwg6yTBg8O+Xyq3gCu4iKu7q3viKToCdfi0tnKNZxMlBHdNy5JO7Ha3XbZ/+AH//6AT++oClrU2A4fNASXL1zfcGYtMfvOGe5AwRxW3ZFYr9ubgylI9sQ56N5nvEgo27PvFaLmSzu/ZNtN5V+gPpGTf1zbMhiFrHlZbWZ4gIamnE8xTtQ7P1Nr9yEqg3saRUwLajqM75x7BuRYqgp41qOJOopd2xzpeJXCfyNqWUp/v7b4KB7cWqp+mRlvkzwIu+YYSf6wPj6JkQOioH1myIPQwiVNOUSUZpFCfUAi2vG4m8KZWf4Nc8x8Jr+GOq3v+q8T3np30TCs0pKCQTEGT54//Q22aCBPlaIGv1ghOKdguqNliTRHQW5HKTs02jlCmHrgqWYrLeHf5qrXgNKbVaP0HBOUtSutMPxHBkh3PRBoXzHZtlj2K9EOyJ3IwyF+lrUoYMuz8s0AQle357gtIOIrf5YaJEjLAHw/aVvYNxAQ0dPJtMrFHD+EkxBNJJcQ== X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(6666004)(508600001)(107886003)(83380400001)(16526019)(36756003)(186003)(336012)(6916009)(426003)(26005)(86362001)(316002)(55016003)(6286002)(4326008)(7696005)(1076003)(70206006)(70586007)(47076005)(8676002)(5660300002)(2616005)(40460700003)(81166007)(356005)(8936002)(2906002)(2876002)(82310400004)(36860700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2022 15:57:10.5649 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b809f8e-4a52-4e0e-7b19-08da01e57883 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.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT033.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0239 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: Elena Agostini Without enabling gdrcopy, dpdk build has warnings about unused gdrcopy functions input parameters. This patch set them to __rte_unused . Fixes: 24c7759 ("gpu/cuda: map GPU memory with GDRCopy") Signed-off-by: Elena Agostini --- drivers/gpu/cuda/gdrcopy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/cuda/gdrcopy.c b/drivers/gpu/cuda/gdrcopy.c index 96e768b97b..3126d246eb 100644 --- a/drivers/gpu/cuda/gdrcopy.c +++ b/drivers/gpu/cuda/gdrcopy.c @@ -80,7 +80,7 @@ gdrcopy_open(gdr_t *g) #endif int -gdrcopy_pin(gdr_t *gdrc_h, __rte_unused gdr_mh_t *mh, uint64_t d_addr, size_t size, void **h_addr) +gdrcopy_pin(__rte_unused gdr_t *gdrc_h, __rte_unused gdr_mh_t *mh, __rte_unused uint64_t d_addr, __rte_unused size_t size, __rte_unused void **h_addr) { #ifdef DRIVERS_GPU_CUDA_GDRCOPY_H if (*gdrc_h == NULL) { @@ -116,7 +116,7 @@ gdrcopy_pin(gdr_t *gdrc_h, __rte_unused gdr_mh_t *mh, uint64_t d_addr, size_t si } int -gdrcopy_unpin(gdr_t gdrc_h, __rte_unused gdr_mh_t mh, void *d_addr, size_t size) +gdrcopy_unpin(gdr_t gdrc_h, __rte_unused gdr_mh_t mh, __rte_unused void *d_addr, __rte_unused size_t size) { if (gdrc_h == NULL) return -EINVAL; -- 2.17.1