Re: >Re: [RFC] should VM_BUG_ON(cond) really evaluate cond
From: Linus Torvalds
Date: Sun Oct 30 2011 - 13:08:25 EST
On Sun, Oct 30, 2011 at 8:16 AM, Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:
> Because it doesnt work if x is const.
Just remove the const. Problem solved.
Both cases of 'const' are totally arbitrary and useless. The
test_bit() one is literally a cast to const (admittedly also *from*
const, but nobody cares), and the atomic_read() one is just because it
uses a silly inline function where a macro would be simpler.
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/