Re: BUG: tracer_alloc_buffers returned with preemption imbalance

From: David Rientjes
Date: Mon Jun 25 2012 - 05:10:20 EST


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