diff options
author | Daniel Santos <daniel.santos@pobox.com> | 2012-09-28 19:20:02 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-10-11 16:51:41 -0400 |
commit | 415c2c525fab214ab75413aadbc67b4ee9cf212e (patch) | |
tree | 35a336c2ff5adf55e66c6144dd14fa77d89dcbb3 | |
parent | 76b27645a5bba85bd26896811c7a25ecc37b3731 (diff) |
compiler-gcc4.h: correct verion check for __compiletime_error
__attribute__((error(msg))) was introduced in gcc 4.3 (not 4.4) and as I
was unable to find any gcc bugs pertaining to it, I'm presuming that it
has functioned as advertised since 4.3.0.
Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Tested-by: David Rientjes <rientjes@google.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
-rw-r--r-- | include/linux/compiler-gcc4.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h index 2f4079175afb..10ce4fafea64 100644 --- a/include/linux/compiler-gcc4.h +++ b/include/linux/compiler-gcc4.h | |||
@@ -52,7 +52,7 @@ | |||
52 | #if __GNUC_MINOR__ > 0 | 52 | #if __GNUC_MINOR__ > 0 |
53 | #define __compiletime_object_size(obj) __builtin_object_size(obj, 0) | 53 | #define __compiletime_object_size(obj) __builtin_object_size(obj, 0) |
54 | #endif | 54 | #endif |
55 | #if __GNUC_MINOR__ >= 4 && !defined(__CHECKER__) | 55 | #if __GNUC_MINOR__ >= 3 && !defined(__CHECKER__) |
56 | #define __compiletime_warning(message) __attribute__((warning(message))) | 56 | #define __compiletime_warning(message) __attribute__((warning(message))) |
57 | #define __compiletime_error(message) __attribute__((error(message))) | 57 | #define __compiletime_error(message) __attribute__((error(message))) |
58 | #endif | 58 | #endif |