summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index f88889740949..99aab023173f 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -17,10 +17,9 @@
* Allow us to mark functions as 'deprecated' and have gcc emit a nice
* warning for each use, in hopes of speeding the functions removal.
* Usage is:
- * int deprecated foo(void)
- * and then gcc will emit a warning for each usage of the function.
+ * int __deprecated foo(void)
*/
-#if __GNUC__ >= 3
+#if ( __GNUC__ == 3 && __GNUC_MINOR > 0 ) || __GNUC__ > 3
#define __deprecated __attribute__((deprecated))
#else
#define __deprecated