From: Andi Kleen Date: Tue, 13 Sep 2005 08:25:13 +0000 (-0700) Subject: [PATCH] Make BUILD_BUG_ON fail at compile time. X-Git-Tag: v2.6.14-rc2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=921717a2a1cde78c9b2aa971c16510d63efe7320;p=pandora-kernel.git [PATCH] Make BUILD_BUG_ON fail at compile time. Force a compiler error instead of a link error, because they are easier to track down. Idea stolen from code by Jan Beulich If the argument to BUILD_BUG_ON evaluates to non-zero the compiler will do: t.c:6: error: size of array `type name' is negative (surprised that gcc doesn't have an extension for this) Signed-off-by: "Andi Kleen" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed