diff options
author | Daniel Santos <daniel.santos@pobox.com> | 2012-09-28 18:20:02 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-10-11 22:51:41 +0200 |
commit | 415c2c525fab214ab75413aadbc67b4ee9cf212e (patch) | |
tree | 35a336c2ff5adf55e66c6144dd14fa77d89dcbb3 /include/linux/compiler-gcc4.h | |
parent | 76b27645a5bba85bd26896811c7a25ecc37b3731 (diff) | |
download | linux-stable-415c2c525fab214ab75413aadbc67b4ee9cf212e.tar.gz linux-stable-415c2c525fab214ab75413aadbc67b4ee9cf212e.tar.bz2 linux-stable-415c2c525fab214ab75413aadbc67b4ee9cf212e.zip |
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>
Diffstat (limited to 'include/linux/compiler-gcc4.h')
-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 @@ #if __GNUC_MINOR__ > 0 #define __compiletime_object_size(obj) __builtin_object_size(obj, 0) #endif -#if __GNUC_MINOR__ >= 4 && !defined(__CHECKER__) +#if __GNUC_MINOR__ >= 3 && !defined(__CHECKER__) #define __compiletime_warning(message) __attribute__((warning(message))) #define __compiletime_error(message) __attribute__((error(message))) #endif |