]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/compiler-gcc3.h
compiler: introduce __used and __maybe_unused
[linux-2.6-omap-h63xx.git] / include / linux / compiler-gcc3.h
index ecd621fd27d2415376ea1d123b353edfd2ee7843..a9e2863c2dbf058a97b62ccf18af83bf8a1145c2 100644 (file)
@@ -4,9 +4,11 @@
 #include <linux/compiler-gcc.h>
 
 #if __GNUC_MINOR__ >= 3
-# define __attribute_used__    __attribute__((__used__))
+# define __used                        __attribute__((__used__))
+# define __attribute_used__    __used                          /* deprecated */
 #else
-# define __attribute_used__    __attribute__((__unused__))
+# define __used                        __attribute__((__unused__))
+# define __attribute_used__    __used                          /* deprecated */
 #endif
 
 #if __GNUC_MINOR__ >= 4