From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752673AbbERAn3 (ORCPT ); Sun, 17 May 2015 20:43:29 -0400 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:56101 "EHLO lgemrelse6q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752389AbbERAm2 (ORCPT ); Sun, 17 May 2015 20:42:28 -0400 X-Original-SENDERIP: 10.177.220.203 X-Original-MAILFROM: namhyung@kernel.org From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Adrian Hunter , Andi Kleen , Frederic Weisbecker , Stephane Eranian Subject: [PATCH 32/40] perf tools: Move BUILD_ID_SIZE definition to perf.h Date: Mon, 18 May 2015 09:30:47 +0900 Message-Id: <1431909055-21442-33-git-send-email-namhyung@kernel.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: <1431909055-21442-1-git-send-email-namhyung@kernel.org> References: <1431909055-21442-1-git-send-email-namhyung@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The util/event.h includes util/build-id.h only for BUILD_ID_SIZE. This is a problem when I include util/event.h from util/tool.h which is also included by util/build-id.h since it now makes a circular dependency resulting in incomplete type error. Signed-off-by: Namhyung Kim --- tools/perf/perf.h | 1 + tools/perf/util/build-id.h | 2 -- tools/perf/util/dso.h | 1 + tools/perf/util/event.h | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 192d936020ea..1f12336ca5a8 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -30,6 +30,7 @@ static inline unsigned long long rdclock(void) } #define MAX_NR_CPUS 1024 +#define BUILD_ID_SIZE 20 extern const char *input_name; extern bool perf_host, perf_guest; diff --git a/tools/perf/util/build-id.h b/tools/perf/util/build-id.h index 85011222cc14..e71304c9c86f 100644 --- a/tools/perf/util/build-id.h +++ b/tools/perf/util/build-id.h @@ -1,8 +1,6 @@ #ifndef PERF_BUILD_ID_H_ #define PERF_BUILD_ID_H_ 1 -#define BUILD_ID_SIZE 20 - #include "tool.h" #include "strlist.h" #include diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index de9d98c44ae2..aa1f503c30bf 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h @@ -7,6 +7,7 @@ #include #include #include "map.h" +#include "perf.h" #include "build-id.h" enum dso_binary_type { diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 97179abc80a1..40e02544f861 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -6,7 +6,6 @@ #include "../perf.h" #include "map.h" -#include "build-id.h" #include "perf_regs.h" struct mmap_event { -- 2.4.0