Files
tegra-linux-noble/include/linux
Konstantin Khlebnikov baf05aa927 bug: introduce BUILD_BUG_ON_INVALID() macro
Sometimes we want to check some expressions correctness at compile time.
"(void)(e);" or "if (e);" can be dangerous if the expression has
side-effects, and gcc sometimes generates a lot of code, even if the
expression has no effect.

This patch introduces macro BUILD_BUG_ON_INVALID() for such checks, it
forces a compilation error if expression is invalid without any extra
code.

[Cast to "long" required because sizeof does not work for bit-fields.]

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-29 16:22:20 -07:00
..
2012-04-23 14:23:32 +03:00
2012-05-15 17:30:30 -04:00
2012-05-08 14:13:25 -07:00
2012-04-14 15:24:26 -04:00
2012-05-02 14:15:27 -05:00
2012-05-25 12:46:23 +05:30
2012-04-30 15:30:18 -07:00
2012-05-17 15:36:35 -04:00
2012-04-12 12:57:08 +02:00
2012-04-27 10:46:45 +08:00
2012-05-22 11:32:31 +02:00
2012-05-12 14:28:14 +02:00
2012-05-12 14:28:16 +02:00
2012-04-21 16:26:33 -04:00
2012-04-19 13:56:55 +02:00
2012-05-07 10:58:57 -06:00
2012-05-21 21:09:38 +02:00
2012-04-09 11:16:55 -07:00
2012-05-11 10:56:56 +01:00
2012-05-09 13:58:06 -07:00
2012-05-22 15:20:28 -04:00
2012-05-29 16:22:19 -07:00
2012-05-19 02:51:00 -04:00
2012-05-08 20:25:42 +02:00
2012-04-12 15:10:33 -04:00
2012-05-26 14:17:30 -04:00
2012-05-16 15:17:08 -04:00
2012-04-30 14:52:43 -06:00
2012-05-14 14:15:32 -07:00
2012-05-12 15:53:42 -04:00
2012-05-17 08:51:59 -07:00
2012-04-18 15:57:31 -07:00
2012-05-21 23:52:30 -04:00
2012-05-19 18:34:57 -04:00
2012-05-08 12:35:06 +02:00
2012-04-15 12:44:40 -04:00
2012-05-14 18:53:19 -04:00
2012-05-29 16:22:19 -07:00
2012-05-21 16:16:58 -07:00
2012-05-04 16:58:47 -07:00
2012-04-10 22:39:17 -06:00
2012-05-22 12:16:16 +09:30