Rikard Falkeborn 8788994376 linux/build_bug.h: change type to int
Having BUILD_BUG_ON_ZERO produce a value of type size_t leads to awkward
casts in cases where the result needs to be signed, or of smaller type
than size_t.  To avoid this, cast the value to int instead and rely on
implicit type conversions when a larger or unsigned type is needed.

Link: http://lkml.kernel.org/r/20190811184938.1796-3-rikard.falkeborn@gmail.com
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Joe Perches <joe@perches.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-12-04 19:44:12 -08:00
..
2019-08-09 09:15:05 +02:00
2019-09-16 09:56:27 -07:00
2019-05-31 11:13:10 +02:00
2019-12-01 16:16:31 -08:00
2019-11-27 10:17:28 -08:00
2019-07-08 09:54:55 -07:00
2019-10-31 16:54:00 +05:30
2019-09-21 10:26:24 -07:00
2019-08-20 22:09:52 +02:00
2019-05-14 19:52:50 -07:00
2019-07-01 08:18:54 -06:00
2019-11-15 23:44:48 +01:00
2019-06-12 20:27:13 +02:00
2019-11-26 10:26:26 +01:00
2019-09-23 11:21:04 -07:00
2019-11-28 11:16:43 -08:00
2019-10-09 19:33:43 -07:00
2019-06-24 10:23:16 +02:00
2019-11-28 11:16:43 -08:00
2019-07-17 09:55:43 -07:00
2019-12-03 11:20:37 +01:00
2019-11-26 19:25:25 -08:00
2019-09-05 19:52:33 -06:00
2019-12-02 14:46:22 -08:00
2019-09-25 09:55:59 -07:00
2019-12-02 14:46:22 -08:00
2019-11-27 11:42:01 -08:00
2019-11-20 09:40:10 +01:00
2019-11-27 11:06:20 -08:00
2019-07-12 15:13:55 -07:00
2019-12-01 12:59:06 -08:00
2019-09-05 11:40:54 +02:00
2019-10-02 06:36:50 -07:00
2019-11-08 08:46:49 -08:00
2019-07-05 21:34:50 +02:00
2019-06-26 13:19:46 -07:00
2019-10-04 12:31:46 -07:00
2019-10-15 13:34:25 +02:00
2019-11-11 09:02:56 +01:00
2019-06-10 13:00:24 +02:00
2019-07-08 19:36:47 -07:00
2019-09-02 11:43:54 +01:00
2019-10-15 20:40:06 -07:00
2019-09-05 12:32:05 +02:00
2019-09-29 10:33:41 -07:00
2019-11-05 18:25:54 +01:00
2019-08-14 15:30:35 +02:00
2019-08-08 09:09:25 +02:00
2019-11-14 19:06:47 -08:00
2019-07-08 19:25:19 -07:00
2019-11-27 10:17:28 -08:00
2019-06-13 09:02:33 -04:00
2019-07-26 17:01:29 -06:00
2019-11-13 19:09:47 +08:00
2019-12-03 13:58:22 -08:00
2019-07-16 19:23:25 -07:00
2019-06-15 12:25:49 +02:00
2019-05-14 19:52:48 -07:00
2019-08-23 16:39:26 +01:00
2019-10-19 22:55:46 +02:00
2019-11-14 13:07:48 +08:00
2019-10-10 14:55:24 -07:00
2019-11-30 14:35:43 -08:00
2019-05-16 15:51:55 -07:00
2019-12-01 06:29:17 -08:00
2019-11-25 19:56:11 -07:00
2019-11-13 12:15:34 -08:00
2019-11-13 00:33:21 +11:00
2019-08-30 07:27:17 -07:00
2019-11-15 14:38:30 +01:00
2019-08-01 20:51:22 +02:00
2019-08-20 17:05:05 +02:00
2019-07-31 19:03:35 +02:00
2019-12-01 14:00:59 -08:00
2019-11-14 12:20:02 +08:00
2019-05-15 17:35:54 +01:00
2019-07-14 16:51:47 -07:00
2019-10-14 15:04:01 -07:00