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:
parent
ad3516bb4a
commit
ea39ca97d2
@ -70,6 +70,9 @@ rdmsr(int msr, uint64_t *val)
|
||||
|
||||
return ret;
|
||||
#else
|
||||
RTE_SET_USED(msr);
|
||||
RTE_SET_USED(val);
|
||||
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user