Re: More cleanups for swsusp

Andrew Morton
2004-01-20T23:12:40Z

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) \
do { \
if (!(expr)) \
compile_time_assert_failed(); /* undefined */ \
} while (0)