From: Anatoly Burakov Date: Thu, 28 Oct 2021 14:15:17 +0000 (+0000) Subject: vfio: fix FreeBSD clear group stub X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bf8b792f3b8519fecf3585ffac15da6f7bca2de9;p=dpdk.git vfio: fix FreeBSD clear group stub On FreeBSD, `rte_vfio_clear_group()` was returning 0 even though this function is not valid for FreeBSD, and is called out to return error in doxygen comments. Fix the return value to match documentation. Fixes: c564a2a20093 ("vfio: expose clear group function for internal usages") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov --- diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 2c2baaa691..5cea368efe 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -1045,7 +1045,7 @@ int rte_vfio_noiommu_is_enabled(void) int rte_vfio_clear_group(__rte_unused int vfio_group_fd) { - return 0; + return -1; } int