From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752922AbbJLOcu (ORCPT ); Mon, 12 Oct 2015 10:32:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34764 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752699AbbJLOcs (ORCPT ); Mon, 12 Oct 2015 10:32:48 -0400 Date: Mon, 12 Oct 2015 16:32:44 +0200 From: Jiri Olsa To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , LKML , Frederic Weisbecker , Stephane Eranian , David Ahern , Andi Kleen Subject: Re: [RFC/PATCH 28/38] perf tools: Move BUILD_ID_SIZE definition to perf.h Message-ID: <20151012143244.GA25657@krava.brq.redhat.com> References: <1443763159-29098-1-git-send-email-namhyung@kernel.org> <1443769139-13264-1-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443769139-13264-1-git-send-email-namhyung@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 02, 2015 at 03:58:49PM +0900, Namhyung Kim wrote: > 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. BUILD_ID_SIZE is build-id.h specific though.. ;-) how about removing tool.h include from build-id.h and add just 'struct perf_tool;' declaration or some other similar fix.. jirka