Re: [PATCHSET 0/5] BUILD_BUG_ON: error on none-const expressions

From: Ingo Molnar
Date: Sat Sep 06 2008 - 12:02:21 EST



* Boaz Harrosh <bharrosh@xxxxxxxxxxx> wrote:

> Submitted a patchset to fix BUILD_BUG_ON to no longer let through
> none compile-time constant expressions. This was debated a few
> times on LKML. The final solution is as proposed by Rusty Russell,
> which produces all expected results in my tests.
> [see: http://www.spinics.net/lists/kernel/msg772904.html]
>
> [PATCH 1/5] debug, x86: move BUILD_BUG_ON() ARRAY_SIZE and __FUNCTION__
> Ingo this is your patch. Please verify?

yeah.

Acked-by: Ingo Molnar <mingo@xxxxxxx>

> [PATCH 5/5] debug: BUILD_BUG_ON: error on none-const expressions
> Finally after all call sites are fixed this can go in.
> (Rusty this one is From: you)

v3 looks good to me.

Andrew, are you picking this up? Looks like the perfect fit for -mm to
me. I can drop the previous version from -tip so that there's no
linux-next conflict.

Ingo
--
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/