From: Pablo de Lara Date: Fri, 13 Oct 2017 13:08:12 +0000 (+0100) Subject: eal/x86: fix FreeBSD build X-Git-Tag: spdx-start~1329 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ea39ca97d2528d235f9cfe1c0338a39e79a8a891;p=dpdk.git 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: ad3516bb4ae1 ("eal/x86: implement arch-specific TSC freq query") Signed-off-by: Pablo de Lara --- diff --git a/lib/librte_eal/common/arch/x86/rte_cycles.c b/lib/librte_eal/common/arch/x86/rte_cycles.c index 1049d65672..b286d90852 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 }