Message ID | KL1PR0401MB1301A913A318D66496DC6299A4DA0@KL1PR0401MB1301.apcprd04.prod.outlook.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 436C7C482; Thu, 28 Jan 2016 15:16:46 +0100 (CET) Received: from BLU004-OMC1S36.hotmail.com (blu004-omc1s36.hotmail.com [65.55.116.47]) by dpdk.org (Postfix) with ESMTP id C2AC4C47E for <dev@dpdk.org>; Thu, 28 Jan 2016 15:16:44 +0100 (CET) Received: from APC01-PU1-obe.outbound.protection.outlook.com ([65.55.116.9]) by BLU004-OMC1S36.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 28 Jan 2016 06:16:44 -0800 Received: from KL1PR0401MB1301.apcprd04.prod.outlook.com (10.165.205.155) by KL1PR0401MB1302.apcprd04.prod.outlook.com (10.165.205.156) with Microsoft SMTP Server (TLS) id 15.1.390.13; Thu, 28 Jan 2016 14:16:41 +0000 Received: from KL1PR0401MB1301.apcprd04.prod.outlook.com ([10.165.205.155]) by KL1PR0401MB1301.apcprd04.prod.outlook.com ([10.165.205.155]) with mapi id 15.01.0390.013; Thu, 28 Jan 2016 14:16:40 +0000 From: =?utf-8?B?5Y2iIOavhQ==?= <luyi68@live.com> To: "david.marchand@6wind.com" <david.marchand@6wind.com> Thread-Topic: [PATCH] eal: fix compile error in eal_timer.c caused by hpet Thread-Index: AQHRWdaB3X4Wc34TEkei69YXXCf+lQ== Date: Thu, 28 Jan 2016 14:16:40 +0000 Message-ID: <KL1PR0401MB1301A913A318D66496DC6299A4DA0@KL1PR0401MB1301.apcprd04.prod.outlook.com> References: <BLU436-SMTP157815B37FD696F25A704E3A4F10@phx.gbl> In-Reply-To: <BLU436-SMTP157815B37FD696F25A704E3A4F10@phx.gbl> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 6wind.com; dkim=none (message not signed) header.d=none; 6wind.com; dmarc=none action=none header.from=live.com; x-ms-exchange-messagesentrepresentingtype: 1 x-microsoft-exchange-diagnostics: 1; KL1PR0401MB1302; 23:35xbljSoGEr8qyxLmoWMfQM/hIMDLer2hOZRCbVv2aQvKUvH4JQ88nzRMx6zkNXO0dBQ8HCTPLvtrLBFZ0wX1psoj4T7Fro75XW7qq6idR2rg+7UCnc7EIZWZS9x7oAERZyDibbcheX7gQRIqdK/n2JJIEjI3wFLn5I2EcBVrbmbjXXt3EMxFGwPoCT5ODsIcH76mAvci3WjD5Cvi5+cYA==; 5:aRVfrkty74rhAiTyDsO7fhBh0jrz/cbKQK/QUQP7YQqO1hskXbBEsy+NQMc71ywyfmP8HIm4yReP2AFa5EeL7uqhTQJcZoOgZ84J01FqFQaATS+hMDwBvxD31ijCqNT7UtFg+47R6wfDbbr6s+eVEg==; 24:LHH4fHEEWpWKjvWHXUwDHX86+ALlaHHbJjGVNu5VgzwuPMyF2b+UteGaNm2oZ2Vo8bM12q/OWKlzuSNXDgkNVCL8mIHyFF6+mBp01zae4nc= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0401MB1302; x-ms-office365-filtering-correlation-id: 40d6911a-c09e-40f7-fee7-08d327eda1a5 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:KL1PR0401MB1302; BCL:0; PCL:0; RULEID:; SRVR:KL1PR0401MB1302; x-forefront-prvs: 083526BF8A x-forefront-antispam-report: SFV:NSPM; SFS:(7070004)(98900002); DIR:OUT; SFP:1901; SCL:1; SRVR:KL1PR0401MB1302; H:KL1PR0401MB1301.apcprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <6347D8F19B31B74687931742408F7AFD@apcprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: sct-15-1-318-9-msonline-outlook-c6026.templateTenant X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2016 14:16:40.2585 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0401MB1302 X-OriginalArrivalTime: 28 Jan 2016 14:16:44.0266 (UTC) FILETIME=[83FC04A0:01D159D6] Cc: "dev@dpdk.org" <dev@dpdk.org> Subject: [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c caused by hpet X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Yi Lu
Jan. 28, 2016, 2:16 p.m. UTC
Fix compile error when enable CONFIG_RTE_LIBEAL_USE_HPET. Error messages: /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’: /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration] ret = rte_thread_setname(msb_inc_thread_id, thread_name); ^ /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs] cc1: all warnings being treated as errors Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12") Signed-off-by: Yi Lu <luyi68@live.com> Acked-by: David Marchand <david.marchand@6wind.com> --- lib/librte_eal/linuxapp/eal/eal_timer.c | 1 + 1 file changed, 1 insertion(+) -- 1.8.3.1
Comments
2016-01-28 14:16, 卢 毅: > Fix compile error when enable CONFIG_RTE_LIBEAL_USE_HPET. > > Error messages: > /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’: > /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration] > ret = rte_thread_setname(msb_inc_thread_id, thread_name); > ^ > /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs] > cc1: all warnings being treated as errors > > Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12") Just looking at the first letters of this SHA1 gives a hint ;) > Signed-off-by: Yi Lu <luyi68@live.com> > Acked-by: David Marchand <david.marchand@6wind.com> Applied, thanks
diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c index 9ceff33..bcadf09 100644 --- a/lib/librte_eal/linuxapp/eal/eal_timer.c +++ b/lib/librte_eal/linuxapp/eal/eal_timer.c @@ -50,6 +50,7 @@ #include <rte_memory.h> #include <rte_memzone.h> #include <rte_eal.h> +#include <rte_lcore.h> #include <rte_debug.h> #include "eal_private.h"