From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 633181B1F2 for ; Fri, 13 Oct 2017 15:08:19 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Oct 2017 06:08:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,371,1503385200"; d="scan'208";a="1230420922" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by fmsmga002.fm.intel.com with ESMTP; 13 Oct 2017 06:08:14 -0700 From: Pablo de Lara To: thomas@monjalon.net Cc: dev@dpdk.org, Pablo de Lara Date: Fri, 13 Oct 2017 14:08:12 +0100 Message-Id: <20171013130812.45519-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.9.4 Subject: [dpdk-dev] [PATCH] eal/x86: fix FreeBSD build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 13:08:19 -0000 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 --- 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