From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 87A315B1E for ; Tue, 16 Oct 2018 13:38:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2018 04:37:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,388,1534834800"; d="scan'208";a="100654089" Received: from jeffguo-s2600wt2.sh.intel.com (HELO localhost.localdomain) ([10.67.110.10]) by orsmga002.jf.intel.com with ESMTP; 16 Oct 2018 04:37:58 -0700 From: Jeff Guo To: bruce.richardson@intel.com, ferruh.yigit@intel.com, thomas@monjalon.net Cc: dev@dpdk.org, jia.guo@intel.com Date: Tue, 16 Oct 2018 19:41:00 +0800 Message-Id: <1539690060-133057-1-git-send-email-jia.guo@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH 1/2] eal/bsd: fix FreeBSD build 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: Tue, 16 Oct 2018 11:38:01 -0000 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. Signed-off-by: Jeff Guo --- lib/librte_eal/bsdapp/eal/eal_dev.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_dev.c b/lib/librte_eal/bsdapp/eal/eal_dev.c index 3a3a2a5..255d611 100644 --- a/lib/librte_eal/bsdapp/eal/eal_dev.c +++ b/lib/librte_eal/bsdapp/eal/eal_dev.c @@ -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"); -} -- 2.7.4