From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752060AbcFZIlT (ORCPT ); Sun, 26 Jun 2016 04:41:19 -0400 Received: from szxga04-in.huawei.com ([119.145.14.52]:45929 "EHLO szxga04-in.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751731AbcFZIlO (ORCPT ); Sun, 26 Jun 2016 04:41:14 -0400 From: He Kuang To: , , , , , CC: , , , , Subject: [PATCH] perf tools: Fix compiler error due to header file changes Date: Sun, 26 Jun 2016 08:40:13 +0000 Message-ID: <1466930413-21793-1-git-send-email-hekuang@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.107.193.250] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.576F951F.00C0,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: dce1d5c7df7d190383c2821321433d32 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 41840d211c51 ("perf config: Move config declarations from util/cache.h to util/config.h") moved perf_config*(), causes the following errors when we build with LIBBABELTRACE=1: util/data-convert-bt.c: In function ‘convert__config’: util/data-convert-bt.c:1269:3: error: implicit declaration of function ‘perf_config_u64’ [-Werror=implicit-function-declaration] c->queue_size = perf_config_u64(var, value); ^ util/data-convert-bt.c:1269:3: error: nested extern declaration of ‘perf_config_u64’ [-Werror=nested-externs] util/data-convert-bt.c: In function ‘bt_convert__perf2ctf’: util/data-convert-bt.c:1302:2: error: implicit declaration of function ‘perf_config’ [-Werror=implicit-function-declaration] perf_config(convert__config, &c); ^ Include the right header file to fix this. Signed-off-by: He Kuang --- tools/perf/util/data-convert-bt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c index 4b59879..7b1bc24 100644 --- a/tools/perf/util/data-convert-bt.c +++ b/tools/perf/util/data-convert-bt.c @@ -26,6 +26,7 @@ #include "evlist.h" #include "evsel.h" #include "machine.h" +#include "config.h" #define pr_N(n, fmt, ...) \ eprintf(n, debug_data_convert, fmt, ##__VA_ARGS__) -- 1.8.5.2