From: Moti Haimovsky Date: Wed, 17 Jan 2018 17:24:15 +0000 (+0200) Subject: vfio: fix FreeBSD build X-Git-Tag: spdx-start~250 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=681721958194f4ea48f95f67a479ef645e66e868;p=dpdk.git vfio: fix FreeBSD build This patch fixes the following compilation errors in bsdapp lib/librte_eal/bsdapp/eal/eal.c:782:5: error: no previous prototype for function 'rte_vfio_clear_group' int rte_vfio_clear_group(int vfio_group_fd) ^ lib/librte_eal/bsdapp/eal/eal.c:782:30: error: unused parameter 'vfio_group_fd' int rte_vfio_clear_group(int vfio_group_fd) ^ Fixes: c564a2a20093 ("vfio: expose clear group function for internal usages") Signed-off-by: Moti Haimovsky --- diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 7239243bc7..04cbd81c50 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -748,6 +748,7 @@ int rte_vfio_release_device(const char *sysfs_base, const char *dev_addr, int fd 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; }