From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D40055F29 for ; Thu, 20 Sep 2018 14:26:46 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2018 05:26:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,398,1531810800"; d="scan'208";a="91773016" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 20 Sep 2018 05:26:39 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w8KCQc66008465; Thu, 20 Sep 2018 13:26:38 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id w8KCQcON029369; Thu, 20 Sep 2018 13:26:38 +0100 Received: (from aburakov@localhost) by sivswdev01.ir.intel.com with LOCAL id w8KCQbG6029365; Thu, 20 Sep 2018 13:26:37 +0100 From: Anatoly Burakov To: dev@dpdk.org Cc: Bruce Richardson , thomas@monjalon.net, xuemingx.zhang@intel.com Date: Thu, 20 Sep 2018 13:26:37 +0100 Message-Id: <0966156afeda985c9a434f24b6b555d1963c6bb5.1537446247.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2] eal/bsd: fix unused parameters compile error 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: Thu, 20 Sep 2018 12:26:47 -0000 When compiling on FreeBSD, lots of warnings/errors are thrown for unused parameter. Fix these by marking the parameters as unused in the code. Fixes: 1009ba1704f9 ("mem: add internal API to get and set segment fd") Fixes: 3a44687139eb ("mem: allow querying offset into segment fd") Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v2: - Added missing Fixes tag - Reworded commit message lib/librte_eal/bsdapp/eal/eal_memalloc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_memalloc.c b/lib/librte_eal/bsdapp/eal/eal_memalloc.c index 06afbcc99..a5847f0bd 100644 --- a/lib/librte_eal/bsdapp/eal/eal_memalloc.c +++ b/lib/librte_eal/bsdapp/eal/eal_memalloc.c @@ -49,19 +49,21 @@ eal_memalloc_sync_with_primary(void) } int -eal_memalloc_get_seg_fd(int list_idx, int seg_idx) +eal_memalloc_get_seg_fd(int list_idx __rte_unused, int seg_idx __rte_unused) { return -ENOTSUP; } int -eal_memalloc_set_seg_fd(int list_idx, int seg_idx, int fd) +eal_memalloc_set_seg_fd(int list_idx __rte_unused, int seg_idx __rte_unused, + int fd __rte_unused) { return -ENOTSUP; } int -eal_memalloc_get_seg_fd_offset(int list_idx, int seg_idx, size_t *offset) +eal_memalloc_get_seg_fd_offset(int list_idx __rte_unused, + int seg_idx __rte_unused, size_t *offset __rte_unused) { return -ENOTSUP; } -- 2.17.1