Re: More cleanups for swsusp

From: Rusty Russell
Date: Wed Jan 21 2004 - 00:21:18 EST


In message <20040120151358.09608fc3.akpm@xxxxxxxx> you write:
> Pavel Machek <pavel@xxxxxx> wrote:
> >
> > + BUG_ON (sizeof(struct link) != PAGE_SIZE);
>
> Looking at the code, this hardly seems worth checking. But the compiler
> should just rub this code out anwyay, so whatever.
>
> hmm, one could do:
>
> #define compile_time_assert(expr) \

Already there: BUILD_BUG & BUILD_BUG_ON.

Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/