Re: More cleanups for swsusp

Pavel Machek
2004-01-22T00:17:18Z

Hi!

> > > + 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.

Unfortunately that one gives no message to the user (AFAICS), so
if/when people use it extensively, it will get nasty.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]