Re: More cleanups for swsusp

Rusty Russell
2004-01-21T05:18:45Z

In message <20040120151358.09608fc3.akpm@osdl.org> you write:
> Pavel Machek <pavel@ucw.cz> 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.