On Thu, 2015-12-03 at 23:28 +0200, Andy Shevchenko wrote: > On Thu, 2015-12-03 at 12:54 -0800, Joe Perches wrote: > > On Thu, 2015-12-03 at 21:51 +0100, Rasmus Villemoes wrote: [] > > > I didn't find a BUILD_BUG/compiletime_assertion/... which would work > > > outside function context, so for now I just open-coded it. > > > > > > [1] http://thread.gmane.org/gmane.linux.kernel/2034835 [] > I like most of the stuff here, though, can we avoid open-coded > BUILD_BUG_ON()?
Not so far as I can know. Maybe another generic could be added. It doesn't seem this specific check is all that useful. sizeof(struct printf_spec) != 8 I suppose there could be an assert in some function instead. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/