eal/x86: fix FreeBSD build
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 13 Oct 2017 13:08:12 +0000 (14:08 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Oct 2017 13:20:50 +0000 (15:20 +0200)
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

index 1049d65..b286d90 100644 (file)
@@ -70,6 +70,9 @@ rdmsr(int msr, uint64_t *val)
 
        return ret;
 #else
+       RTE_SET_USED(msr);
+       RTE_SET_USED(val);
+
        return -1;
 #endif
 }