Re: [PATCH 0/6] use BUG_ON correctly

From: Coly Li
Date: Thu Jan 27 2011 - 00:55:53 EST

On 2011å01æ27æ 10:02, Yong Zhang Wrote:
On Thu, Jan 27, 2011 at 2:39 AM, Coly Li<> wrote:
BUG_ON() already uses unlikely() inside its definition if possible,

It's true for asm-generic/bug.h.

But for archs which has defined HAVE_ARCH_BUG,
unlikely() is not always included in it.

IMHO, if this condition happens, it should be a bug of the arch implementation, unless unlikely() is not really supported.


Coly Li
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at