eal/bsd: fix build
authorJeff Guo <jia.guo@intel.com>
Tue, 16 Oct 2018 11:41:00 +0000 (19:41 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Oct 2018 12:54:25 +0000 (14:54 +0200)
When compiling on FreeBSD, a warning/error is thrown for
unused parameter. This patch aim to fix the issue by delete
the useless func definition.

Fixes: 89ecd110524d ("eal: modify device event process function")

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/bsdapp/eal/eal_dev.c

index 3a3a2a5..255d611 100644 (file)
@@ -33,11 +33,3 @@ rte_dev_hotplug_handle_disable(void)
        RTE_LOG(ERR, EAL, "Device event is not supported for FreeBSD\n");
        return -1;
 }
-
-void  __rte_experimental
-rte_dev_event_callback_process(const char *device_name,
-                              enum rte_dev_event_type event)
-{
-       RTE_LOG(ERR, EAL,
-               "Device event callback process is not supported for FreeBSD.\n");
-}