Re: Proposed patch to kernel.h

From: Linus Torvalds (torvalds@transmeta.com)
Date: Wed May 28 2003 - 21:28:24 EST



On Thu, 29 May 2003, Paul Mackerras wrote:
>
> On second thoughts, it would be cleaner to move BUG_ON() into each
> architecture's bug.h alongside BUG() and PAGE_BUG(), rather than using
> an ifdef in kernel.h as my previous patch did.

Wouldn't it make sense to do the same thing to "WARN_ON()" then? It sounds
entirely appropriate to use the same kind of conditional trap instructions
for that too.. (The only difference being a bit somewhere that says that
the "WARN_ON()" kind of trap handler should resume after the fault).

Linus

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