Re: BUG: tracer_alloc_buffers returned with preemption imbalance

From: Paul E. McKenney
Date: Mon Jun 25 2012 - 09:28:54 EST


On Mon, Jun 25, 2012 at 02:10:23AM -0700, David Rientjes wrote:
> On Sun, 24 Jun 2012, Paul E. McKenney wrote:
>
> > But in my case, the trailing preempt_enable() should not have been
> > optimized away, right? Wouldn't it be more like the following?
> >
> > int a = 0;
> > int main(void)
> > {
> > a++;
> > return ++a;
> > a++;
> > }
> >
> > Hmmm... But this -still- doesn't emit any warnings.
> >
>
> gcc removed -Wunreachable-code a couple years ago. It doesn't complain
> when you pass it for backwards compatibility with old Makefiles.

Ah well, back to manual inspection, then. :-/

Thanx, Paul

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