From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0078.outbound.protection.outlook.com [104.47.1.78]) by dpdk.org (Postfix) with ESMTP id 4517CA490 for ; Wed, 17 Jan 2018 17:23:35 +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=JNTfYGABSecDHrWjpx655GVDgtJjO3vs8fG3vOVGEtw=; b=F7mbwvwqyO2+5or5PhKTKoZRilnQEybNZPWah2H2dcMI1/4hUn0joEnHbRCWb40t1VNhA4sNIPy7ysqqO7vt5xjSoxIM0ATaPSQSDWBDkhQYTqdvSMWfJmWQbNZDfWPxhGupcb8pmFzx1P5lhZTraaMGUzUWDeGT3umArDDDVwY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=motih@mellanox.com; Received: from mellanox.com (37.142.13.130) by DB6PR05MB3208.eurprd05.prod.outlook.com (2603:10a6:6:1b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Wed, 17 Jan 2018 16:23:32 +0000 From: Moti Haimovsky To: thomasm@mellanox.com Cc: dev@dpdk.org, Moti Haimovsky , Hemant Agrawal Date: Wed, 17 Jan 2018 18:23:16 +0200 Message-Id: <1516206196-137537-1-git-send-email-motih@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1PR0402CA0051.eurprd04.prod.outlook.com (2603:10a6:7:7c::40) To DB6PR05MB3208.eurprd05.prod.outlook.com (2603:10a6:6:1b::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3ccc16b1-cecc-4f6d-c4b5-08d55dc6a78f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(2017052603307)(7153060)(7193020); SRVR:DB6PR05MB3208; X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3208; 3:GgoBw1eZg2dD3xXeZcnWq2k0kdAYwGcnlP79Z7U1h+ulBxvuw1iXQDMShHyc0IHqIl2Bw+qqubt7wv4tPl5o5Ymg4cvjpQ9WsegtGFHJVqXf98KqwOVGz/rOt76s61OsxevXZbKRI8LV8v3TH5aSMqTT7KvkKAakyPQ0F4XlTbpLKmS9sEdA12CaZV+X6oRzghY9aXM8IRkXDZVLMBk7bWUVjYe0HxDZD0CclxHQOS2wAUcKgA/VRWMsLPYUtqOf; 25:sbluaHXRz2VWlm9D246iKc9eW1x0o/g2gIohMEKt2+xbS3j2f4JM6et2/kKVzlXKBRKpfpnTbx35jUI8Eqx8QA8X5sqZRiOihYUYHZZUVXN761+AM4fhMlsDqpFkyN9Z7K0PtCPerQfohf1vJiek8qqIwl5PAghnkgau48XdCLlunxwBgxtcFqfljMZlxjGg3LbmLPNwlEjriS4ZEtK8bD5SNXRbRWt89SFA24PkTQQiWnjzjy2zDuo+SiUFLTw25XFMGZr9hP2VBuqVGqUy50W6DxFboKtgTezlyLhBsFyTwK3s2kBFaS8dRED9oewaC260+eOcr/YMX6zSBs7qBg==; 31:9s8idbWVFm48OCZh5eVvbFhvw7OqEYgaEHev3bpe40UsPcXdiTQ8WP86A5RXXM9pat43Y0jGTlYgzhw0stcxvpMdviVFe9jp1MTCv33HIHzwvixrBUtSAn9KIPsyzmH1bQV2gCNLQwcuefwpBcnMVlxU2HCWl3Ne1A8uOwe9Q1h8sfXHSfPYRrJjXpKrBPwPuhdkd6ZVtEhMH3zgkLmpwstgFdQUhnSA2Y22NGVkwIc= X-MS-TrafficTypeDiagnostic: DB6PR05MB3208: X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3208; 20:Km2/TENDUSWQQ9szcAhj2lqjb540sYphoC5voTH9hFg7EU4yb2NvNo5w4r6ASKXKpOtAUrZTD3l7T0vNdn4Ehodz5tFqnEtQTQHtv25pW88v+Dp1Mu+DaQXgafgwjtBAXkK6xI37NA6jL6qv0vaJliFwA6lSAmOT/+LuR4pfioOPtcYl7fgPmc9iTJVnwQGbdCKvkbm+JNZScxG/9ax/A9iTW9RrNxeQX9LM4mgVKcp/PKcndDA/0dz9qLPTEYSuNWBhTrecvlTNMBtk/k91Vngbj7HxbgqiYB3t3RFbWlkTPRsY+VYB3CTH8uIwZlDrlfMOTSJEHBmQO/ckH/l0DtjEjmBJ8TqTPpqijo/FanqI3d1YneN0wnyaQ5UaYKoAFzC5572YmfswBwgkki9yXZlcK+WsxDhCgmBTCuozJSLNFanV6XplqGObph5iQBujJ5mO1WZePHv4Mso9CQHyNja1Gj2fLjqTnrd8hMAJtmgiU3tk6PjxlDa5971xxhH1; 4:/tXIXEq5Sz+SNksjws8GKePDWfqzoggxm08Yeb8gjChPufxt1R9HVMbrBeOvMBvwrpL7TLFmySrZ9rIgP/z+YrkS2QSjYJqfE3M8qSOk+7QPTtI+IVi2O+krDyCvYFwQixY5UrlO0YvTnYSmiPQJEG8j8UuUYp7xDoTO85Ea0JvXoTuSMMNw6/547y7Znsnyi2ZIAwP+5NU0+7y7gSmcdpAWsbQrDkljZbT3CWWlX3Wd1iktVXiRWy2/6NpIKoiJKzF+vj4wclB50lrfdiV4NU1HOgW2Ffs4tHaCNABNj+A0yFHF6ZKOv6NyEDG1DaLy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(944501161)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041268)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:DB6PR05MB3208; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB6PR05MB3208; X-Forefront-PRVS: 0555EC8317 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(39860400002)(396003)(39380400002)(199004)(189003)(37006003)(55016002)(36756003)(2351001)(54906003)(2361001)(316002)(47776003)(66066001)(69596002)(16586007)(53936002)(97736004)(106356001)(7736002)(81166006)(81156014)(8936002)(50226002)(8676002)(305945005)(2906002)(50466002)(48376002)(68736007)(105586002)(478600001)(6116002)(3846002)(26005)(34206002)(5660300001)(7696005)(52116002)(51416003)(8656006)(4326008)(386003)(59450400001)(21086003)(86362001)(33026002)(25786009)(6666003)(6636002)(4720700003)(16526018); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB3208; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; DB6PR05MB3208; 23:25V4AMbM29pJRKw50YO73tE6e99zmD3oKT1elvUE3?= =?us-ascii?Q?BZG9ZdA515KWlsjLMu9Zvq+CPDdZtip6LmefZHGWjPfewQUZBcMJ7w5Gi7RD?= =?us-ascii?Q?fd8Hpq1YNGva5OaOV3zukDmLdQwok9XKZ9Bp7IsMgJo7bvnFXdqn9IsNGpkm?= =?us-ascii?Q?mUyLu8ek8SnTdaaPSb6X/uUinzy6QgYHL5uEJTAwNS7Ktv+lUAs36Ctk3ZZg?= =?us-ascii?Q?e7BD29/rKgT5krU+zrF6ts/ipqMREwlMnyF1ziOkN2mNfALDsDUPc6Ngzo8t?= =?us-ascii?Q?3tmEAbYXDPFyShgcBPgfWXOxn0Aiz5s1Zk5c0FEFc8nmofTobLyC13rIuElJ?= =?us-ascii?Q?Ov5dVhyp1o/mjXKCGPNluEo851cnJy1a/qR7tPkKE4vq+32bwJbPAC4WnLUp?= =?us-ascii?Q?CcZMnNHhayr0fxHYGeU81RYNJQoLuLk1TOZaODJpVAKicRHqvvtEMZEsn5Hj?= =?us-ascii?Q?RKP/hNWu6trno3yW/LzIXjBBiqhcm2TBOro4UScBEjtFFJznK9gTqna4aEJn?= =?us-ascii?Q?tp+zBtwgRlzxHPyTD8/SeUPv++AA2v4F8rBouJyp4URKsR5e1NOMaX6ofHDX?= =?us-ascii?Q?AOPJLPCpcjMfujQV4BwsbWTKcsz6gz8UDbkPBaps+680EzsrRzEYWp7J1I8F?= =?us-ascii?Q?xmPEP8XlbFuzKAF22V08KVqgXC8UZgoh5VCyxZPlhzP6SEnXCVaoKQJecI+g?= =?us-ascii?Q?YxMsV/bZX2YlfA28Y0N+PqfSSB05TFoJXCYrbqndUX4fCw54CMdlwQrDLB5X?= =?us-ascii?Q?FWxsgWRDDvui0n1dAbg6syLfdFL7R780o324n64CxYkFWP0xh356KWLkoFWG?= =?us-ascii?Q?oG7Kgo8IUXEdgjAQejWuCya/YLFVYwYa7Df8dwbf9ms345qK4MGbRLA9Gzfq?= =?us-ascii?Q?iRa50Uvjslya7Hs9CdBOh8q+vgWkZPmjIszanWpP+1vXYaL2wIyuREjiXkfK?= =?us-ascii?Q?53rD9/r9V9cq/nkg1uTWsrZtZY3C094Hr6AuD0r3j83tUtSB7JCqWCkemCes?= =?us-ascii?Q?/LhcuLxAHe8/I1XdJNpFt9nBmzGBrDKFfKEWvcJ+SZ7o49uugXtfoZQuFaA/?= =?us-ascii?Q?4v7A744/N+32lJyDUizFK/QSVy3Ln+7U55valLE/+X3GGEkfM+ezu931z1BT?= =?us-ascii?Q?/KKTFbn6iY+5LTjFnHbJmP1u+Hinqx+FqnhAZ6G+QNCcIC891NBIgj5r+kIB?= =?us-ascii?Q?VYZ2rUGR67bvII2pl6PGi5c/qVzO5ENmhmdA7nq8onMBiI1Q66r5IpNlrZIZ?= =?us-ascii?Q?qTiDWvOsVCv3AEUqV2tOMr6JH5IXwDp2vu/du0/?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3208; 6:15+gVWyi7cZ7g/jmSZ3/DzSfASQ+NzJqzAl/adJDPtZmoOMCEKB1vYedSfW5szIMc1p5EOrGSMfNEbm3RB5fpQYqrHfVOQdmRvPPW/6WRrDC5pHjaA57ma6hek3mmkTfomy1pRYFvZpAYZgALxLgV0YqSDR/9sQSXRzvUex2Pw9Xi5bDbY0RPP7TD4rMuMTZN3gY50avb4fBcr0inXHNTozTEqpNExIsd5EQaFxBSj1DqoVsAuWmBVDXBBBdnbs5btNarlS5S4tUQ6/74A2H4b/w665Vs2gXkh02x336roISAUlL6NH4pPhw4CKln1p7py1vwVjTopejV6JY8keivBAmHa1Acwy3ITjGbu4+Ezg=; 5:2bf7i/1BBN/TZv1RviZ1RuEWv9QSePac3tRK/IFsoZEV3DBwM4mNg1nbxoKm8590viEz2mBBD/I1pZkzlgfd9ByyXAJhh3vuZi+LmBlqIi8WJnuftzXQvc7Czd23mg/j5Ux5z2eKW2Pg9A1jCG2EpnkpsLslDw8BY6HCX0hhjUk=; 24:3jqsGgmwp5uh91zyqOIOFBfgAqAKs8xKepGRPga+USZg/JuVBwbMe1IfeoceoIgQCaotImRoqiPZdzMi9L60P/ZALUernRNXYUitwcbGNXs=; 7:9tzCyRwX99QebzbsnitY3xncIVYOtjP/bwCyV+7LKgb7PhKdcW8nDyQds781tPptUrp4J4bixQOqQRB0zW2tUB6cD/yKCCsLhfpyG+JZfbJWe3lU3yPZFgASZFDnzldYrrX0/3uI+HmEVH7fT99qKYRa2aivlU3do3jAvm85iKJ7zUev/ERta9qXFusJ78cPwSDlDZZG4vZBXg5eyixrVoBVdCSqtGwfpJZ7u57+BPSFy5JTUDYtR60YQdDO0/iH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2018 16:23:32.9543 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ccc16b1-cecc-4f6d-c4b5-08d55dc6a78f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3208 Subject: [dpdk-dev] [PATCH] 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 16:23:35 -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 --- 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..cf72537 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -70,6 +70,7 @@ #include #include #include +#include #include "eal_private.h" #include "eal_thread.h" @@ -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