eal/x86: fix FreeBSD build

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: ad3516bb4a ("eal/x86: implement arch-specific TSC freq query")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara 2017-10-13 14:08:12 +01:00 committed by Thomas Monjalon
parent ad3516bb4a
commit ea39ca97d2

View 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
}