Re: TRACE_BRANCH_PROFILING breaks gcc warnings

From: Ingo Molnar
Date: Wed Apr 15 2009 - 04:13:47 EST



* Sam Ravnborg <sam@xxxxxxxxxxxx> wrote:

> > > This has been mentioned before, and I've asked about sending a
> > > patch that would prevent TRACE_BRANCH_PROFILING from being
> > > selected with an allyesconfig.
> > >
> > > It is easy to do. I could make it a selection and not a
> > > boolean and it will not select it as default, even for
> > > allyes/modconfig
>
> We should have a symbol that is only set for allyesconfig builds.
>
> Then we could do something like:
>
> config TRACE_BRANCH_PROFILING
> depends on !ALLYESCONFIG
>
> The advantage is that it is obvious why we have defiend it like
> this rather than some inverse symbols.
>
> I looked at generating such symbol in kconfig long time ago but
> never finished it.

ah, nice idea! Should be fairly simple to do, right?

The other option is to disable/remove the branch profiler
altogether.

Ingo
--
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/