From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 608BBF04 for ; Thu, 20 Sep 2018 13:19:32 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2018 04:19:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,398,1531810800"; d="scan'208";a="75879496" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by orsmga006.jf.intel.com with ESMTP; 20 Sep 2018 04:19:09 -0700 From: Bruce Richardson To: anatoly.burakov@intel.com Cc: dev@dpdk.org, Bruce Richardson Date: Thu, 20 Sep 2018 12:19:05 +0100 Message-Id: <20180920111905.20107-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] eal: fix unused parameter errors on FreeBSD 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 11:19:32 -0000 When compiling with clang on FreeBSD, lots of warnings/errors are thrown for unused parameter. Fix these by marking the parameters as unused in the code. Fixes: 3a44687139eb ("mem: allow querying offset into segment fd") Fixes: 046aa5c4477b ("mem: add memalloc init stage") Fixes: 1009ba1704f9 ("mem: add internal API to get and set segment fd") Signed-off-by: Bruce Richardson --- 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..524bc0593 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.15.1