DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal/x86: fix FreeBSD build
@ 2017-10-13 13:08 Pablo de Lara
  2017-10-13 13:19 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo de Lara @ 2017-10-13 13:08 UTC (permalink / raw)
  To: thomas; +Cc: dev, Pablo de Lara

lib/librte_eal/common/arch/x86/rte_cycles.c: In function 'rdmsr':
lib/librte_eal/common/arch/x86/rte_cycles.c:57:11:
error: unused parameter 'msr' [-Werror=unused-parameter]
 rdmsr(int msr, uint64_t *val)
           ^
lib/librte_eal/common/arch/x86/rte_cycles.c:57:26:
error: unused parameter 'val' [-Werror=unused-parameter]
 rdmsr(int msr, uint64_t *val)
                          ^
Fixes: ad3516bb4ae1 ("eal/x86: implement arch-specific TSC freq query")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 lib/librte_eal/common/arch/x86/rte_cycles.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/librte_eal/common/arch/x86/rte_cycles.c b/lib/librte_eal/common/arch/x86/rte_cycles.c
index 1049d65..b286d90 100644
--- a/lib/librte_eal/common/arch/x86/rte_cycles.c
+++ b/lib/librte_eal/common/arch/x86/rte_cycles.c
@@ -70,6 +70,9 @@ rdmsr(int msr, uint64_t *val)
 
 	return ret;
 #else
+	RTE_SET_USED(msr);
+	RTE_SET_USED(val);
+
 	return -1;
 #endif
 }
-- 
2.9.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] eal/x86: fix FreeBSD build
  2017-10-13 13:08 [dpdk-dev] [PATCH] eal/x86: fix FreeBSD build Pablo de Lara
@ 2017-10-13 13:19 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-10-13 13:19 UTC (permalink / raw)
  To: Pablo de Lara; +Cc: dev

13/10/2017 15:08, Pablo de Lara:
> lib/librte_eal/common/arch/x86/rte_cycles.c: In function 'rdmsr':
> lib/librte_eal/common/arch/x86/rte_cycles.c:57:11:
> error: unused parameter 'msr' [-Werror=unused-parameter]
>  rdmsr(int msr, uint64_t *val)
>            ^
> lib/librte_eal/common/arch/x86/rte_cycles.c:57:26:
> error: unused parameter 'val' [-Werror=unused-parameter]
>  rdmsr(int msr, uint64_t *val)
>                           ^
> Fixes: ad3516bb4ae1 ("eal/x86: implement arch-specific TSC freq query")
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-13 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-13 13:08 [dpdk-dev] [PATCH] eal/x86: fix FreeBSD build Pablo de Lara
2017-10-13 13:19 ` Thomas Monjalon

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).