From: Daniel Santos Date: Fri, 28 Sep 2012 00:18:55 +0000 (+1000) Subject: compiler-gcc4.h: correct verion check for __compiletime_error X-Git-Tag: next-20121008~2^2~202 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=511a77fa1d8200da3d0297eddefa98c6f746dfac;p=karo-tx-linux.git 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 Cc: Michal Marek Signed-off-by: Andrew Morton --- diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h index 934bc34d5f99..412bc6c2b023 100644 --- a/include/linux/compiler-gcc4.h +++ b/include/linux/compiler-gcc4.h @@ -59,7 +59,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