* [dpdk-dev] [PATCH] eal: fix unused parameter errors on FreeBSD
@ 2018-09-20 11:19 Bruce Richardson
0 siblings, 0 replies; only message in thread
From: Bruce Richardson @ 2018-09-20 11:19 UTC (permalink / raw)
To: anatoly.burakov; +Cc: dev, Bruce Richardson
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 <bruce.richardson@intel.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-20 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-20 11:19 [dpdk-dev] [PATCH] eal: fix unused parameter errors on FreeBSD Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).