Re: [PATCH 1/4] perf tools: Fix include header files inutil/parse-events.h

From: Robert Richter
Date: Tue Apr 24 2012 - 13:58:17 EST


On 24.04.12 14:35:55, Arnaldo Carvalho de Melo wrote:
> Em Tue, Apr 24, 2012 at 06:53:44PM +0200, Robert Richter escreveu:
> > On 05.04.12 18:26:25, Robert Richter wrote:
> > > Include header fixes for
> > >
> > > ... bool:
> > >
> > > util/parse-events.h:31: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âhave_tracepointsâ
> > >
> > > ... and types.h:
> > >
> > > util/parse-events.h:28: error: expected â)â before âconfigâ
> > > util/parse-events.h:34: error: expected declaration specifiers or â...â before âu64â
> > > util/parse-events.h:45: error: expected â)â before âtypeâ
> > >
> > > This happens if now other include files are included before
> > > util/parse-events.h.
> > >
> > > Signed-off-by: Robert Richter <robert.richter@xxxxxxx>
> >
> > Arnaldo,
> >
> > is it your intention that you didn't apply this patch?
>
> Is this on perf/urgent or perf/core? In what system does this happen?

Neither, I stumbled over this while working on a modified version of
perf tools. The interface definition of util/parse-events.h contains
type bool and u64, but both are not defined. Thus, including
parse-events.h independently of other header files will raise this
compile errors. It took me some time to figure out what happened so I
think it is worth fixing it.

-Robert

--
Advanced Micro Devices, Inc.
Operating System Research Center

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/