]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
compiler-gcc4.h: correct verion check for __compiletime_error
authorDaniel Santos <daniel.santos@pobox.com>
Fri, 28 Sep 2012 00:18:55 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Oct 2012 03:56:27 +0000 (14:56 +1100)
__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>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/compiler-gcc4.h

index 934bc34d5f993892f75c3b803d412b43e62dc072..412bc6c2b02358bd48f87cc0d029bd753dbae613 100644 (file)
@@ -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