From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0079.outbound.protection.outlook.com [104.47.1.79]) by dpdk.org (Postfix) with ESMTP id 6EFB41B29F for ; Wed, 17 Jan 2018 18:24:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EdOOnJUFV+BD78Heh6jvayPr0SLIzE56v739tkqBy+o=; b=CJcH4DArn9o6qYvwjKIIacbBceecK5Mxs+DxT3QN/Kh6mWjqnf+iMcIF2tOU1h322SPYHpdCKD4n+V+EqDpeX90Z0U85/NVOKRuDDvKqohcpA9JW9ymUmhGalFnKw7T5sf9DS8als6oEA8WGY3pr1beBly5mnrbZk0d3IzBahLw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=motih@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR05MB3214.eurprd05.prod.outlook.com (2603:10a6:802:1b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Wed, 17 Jan 2018 17:24:25 +0000 From: Moti Haimovsky To: thomas@monjalon.net Cc: dev@dpdk.org, Moti Haimovsky , Hemant Agrawal Date: Wed, 17 Jan 2018 19:24:15 +0200 Message-Id: <1516209855-139507-1-git-send-email-motih@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1516206196-137537-1-git-send-email-motih@mellanox.com> References: <1516206196-137537-1-git-send-email-motih@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR02CA0043.eurprd02.prod.outlook.com (2603:10a6:802:14::14) To VI1PR05MB3214.eurprd05.prod.outlook.com (2603:10a6:802:1b::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 47c8348a-c638-46d0-11a8-08d55dcf2897 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR05MB3214; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB3214; 3:dr0vegHoJJB+OdzttzeekLvo6T/9PWLC+gBgKChRnZkjr7m+ChDi6+WBu6YYY/nb3aMfLKXDjkrf8e44ADtg99yKkqH2+zU9AriLxu0ys2t2GEjQ0CE1IjZa68FB0crcx697a+qNA6XE/c0PrlPAu8UJEULruKyEYwCFjN1uwVdWWDZ7N5DLqYFe/4z/IuMc5YZoZdpEFBc53llALgo5mwbeFYhDzdFv/q/Tzw6tWRNJjZ3tHqne5SFi/GiPllZF; 25:W7Y5Nx6yPdjyWUvf6ZlVbULaJ47Dbw1Ti0FWlTMl4qfEQ32IqkgrAXdtJraNikwPbOPxSygpm+cnoqHk5qRATjmMG+sx5J3qOs8L9BJOZiYJIjrET7NcblZtGXbNnw8bi+m+wXXQpFI1YSm/YRnh5TD6YhNpbFVzyVEz9f+Zgv9G5A1jQSmWPxQEFzkwXkuU6NwrJ8acvMqAd2WcFkvjKOUnEY8h6xinJf7AuM+Zw/EuvsyqOpb/s9In0zhS2pPxaVHTa7hYyIUg8EqS6bBfHa1eKpknFVOtFvcuwdtDIpJhN0ddJXuIB+gsazlbWrMcpxz9PaywfRcyhz1XYcf3KQ==; 31:CF4qFhx9hP9xy/2tH0NhrkcfRoZNg1QqIA+rZVZJ7NQDmKkOpFPAWca+O7Sxwyj0L82y9duGaV4yYvTgxrOlkPcvuHJcDmnEfVREQGRIYXxbmA8Bl4J3RfMIQpqKLo4PGVAsM+uEZzRn6AH2mWqxaDw6l3ptSj8Q4eCsCsRsb4zDQ4Z8vun+DVOHZlSMiVDGWG3aK/xa0YFoMrdAikNODPRx2BDbsGo0v3vveKEij/w= X-MS-TrafficTypeDiagnostic: VI1PR05MB3214: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB3214; 20:jiPVvaCUx8OJucc0VD42nQgPAVu2qKSgwtAWzltrCCdmMa2xl0eoJBM2wwP5bdZ4sLtdcm3D+JJpJBGOX+3kWY3aG1HhzdMqNUC6RMAE6dWY7HMn3jfzpol6sWf90u0G+4JxAzWAm4uHdKoDV/Sr3x8/mYmB3qIDaOqDdA+A0h6wgSALHnhf5oEzm6De5B8ujmyRt2M0mJa80DbhHRaSR1gKLoypoMIRdsNqXEc0kAzBVKBqTKTA3lYkQVm0P01kFj6W/NCv/3PYu+A6MSaVCp9Sjbe+SGOWJ0KbsZnz7RlM+ymHsogBAcDWNbmBpdMY1UwoWppicLcp8RFUFvAN7WV6YHadNBdIC2Gmcqh0ubG7QmdYkv/LD8Sv0eSS/BTPfTTh8zG6q8gIEpSrrhdzmnJEc/kE0XW9VHeJluujYB6ScNu4jO/FA99HhC/npD/Jmfk5oox5y0Ps3cQ+PdK/BlndTJWonbVcdRbdJJ1OUiQR/dIIoGJ3+w3Qaa3KFmyg; 4:7mQ9lgcMamMwqk6ZFJY/ysfe3swuZuonjCuRNC9LTnueQL1Dn+fgPrhrxv+W2nBZcVNj6M/l8WSqxUUcmYTSTfeASy39/eesUQxEJ1EmT7eU9fJlWF2rONXbWQc4cLe5oYJZzCFsT/eoGuUFCazHLonobktGkZMSkOgUfwHfNmRQdOKj9Rs2MpSGTROc4VoUmM7aHX4cPFek89sZ50PE6N7pMQr6biNH/xN5bDjH17RoY+7GOPt91SXTUEFmS+aeX8+m6mNkjgbE8yf4Xq8/SEKiTh+dQGwThQvmpjH7O8Ni8XsDAN+52zE9gRsO8TyLLOMIjrQag6rbPBmSrxDIlonmo+FJiWg/7ngtJTormVA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(3231023)(2400048)(944501161)(93006095)(93001095)(3002001)(6055026)(6041268)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR05MB3214; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR05MB3214; X-Forefront-PRVS: 0555EC8317 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(39860400002)(366004)(39380400002)(376002)(189003)(199004)(8676002)(81156014)(81166006)(68736007)(86362001)(25786009)(69596002)(8936002)(50226002)(7696005)(51416003)(47776003)(386003)(3846002)(7736002)(6116002)(26005)(97736004)(52116002)(4326008)(2906002)(2361001)(2351001)(54906003)(53936002)(305945005)(33026002)(478600001)(55016002)(5660300001)(48376002)(50466002)(4720700003)(76176011)(16526018)(36756003)(59450400001)(66066001)(21086003)(105586002)(316002)(8656006)(106356001)(16586007)(6666003)(6916009)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB3214; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR05MB3214; 23:gFmIE4UKN6krj1b+y0VVMKEefx3FA/3CdrhaZ4ERe?= =?us-ascii?Q?2HsHrmL/0dQGSjp5JzdIg1DeHzsHlO1Z/BoPieHpzOPUdKNzhoqu3dgZBUmB?= =?us-ascii?Q?SnH4+ZRhRrG8dY06P6LfUDFogR8mIyGucbXHVjdi34uLqCkfvXMqWryakqEc?= =?us-ascii?Q?5jBncsQsIhp6QkRIQ4C+Fg6hPRWljIAX8C3pQzVBoqLj9yiBO08daP2ah0pq?= =?us-ascii?Q?OIedHcERpu4Gr6eaw3k4vbYEwI3sb5zdua4nNUc6kYnKIE5/nPkKjni97W55?= =?us-ascii?Q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MKVgsZga9 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2018 17:24:25.8551 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47c8348a-c638-46d0-11a8-08d55dcf2897 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB3214 Subject: [dpdk-dev] [PATCH v2] vfio: fix compilation errors in bsdapp X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 17:24:27 -0000 This patch fixes the following compilation errors in bsdapp /home/patchWorkOrg/compilation/lib/librte_eal/bsdapp/eal/eal.c:782:5: error: no previous prototype for function 'rte_vfio_clear_group' [-Werror,-Wmissing-prototypes] int rte_vfio_clear_group(int vfio_group_fd) ^ /home/patchWorkOrg/compilation/lib/librte_eal/bsdapp/eal/eal.c:782:30: error: unused parameter 'vfio_group_fd' [-Werror,-Wunused-parameter] int rte_vfio_clear_group(int vfio_group_fd) ^ Fixes: c564a2a20093 ("vfio: expose clear group function for internal usages") Cc: Hemant Agrawal Signed-off-by: Moti Haimovsky --- V2: * Added a stub routine instead of including the rte_vfio.h file which is only valid in Linux applications --- lib/librte_eal/bsdapp/eal/eal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 7239243..04cbd81 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -748,6 +748,7 @@ int rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr, int rte_vfio_enable(const char *modname); int rte_vfio_is_enabled(const char *modname); int rte_vfio_noiommu_is_enabled(void); +int rte_vfio_clear_group(int vfio_group_fd); int rte_vfio_setup_device(__rte_unused const char *sysfs_base, __rte_unused const char *dev_addr, @@ -779,7 +780,7 @@ int rte_vfio_noiommu_is_enabled(void) return 0; } -int rte_vfio_clear_group(int vfio_group_fd) +int rte_vfio_clear_group(__rte_unused int vfio_group_fd) { return 0; } -- 1.8.3.1