Re: linux/bug.h and asm/bug.h

From: Ralf Baechle (ralf@uni-koblenz.de)
Date: Mon Nov 04 2002 - 07:41:48 EST


On Mon, Nov 04, 2002 at 01:22:45PM +1100, Rusty Russell wrote:

> As the number of bug-related macros grows, this makes sense.
>
> 1) Introduce linux/bug.h and #include it from linux/kernel.h so noone
> breaks.
> 2) Move BUG() macro from asm*/page.h to asm*/bug.h, and #include it.

Great, people were talking about the mess caused by this just last night.
Just one request, move the BUG_ON definition into <asm/bug.h> also. This
permits the use of conditional trap instructions for those architecture
that have them.

  Ralf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:32 EST