]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/compiler-gcc3.h
Sanitize gcc version header includes
[linux-2.6-omap-h63xx.git] / include / linux / compiler-gcc3.h
index a9e2863c2dbf058a97b62ccf18af83bf8a1145c2..2befe6513ce4ab31613d26b22b398bbce627598f 100644 (file)
@@ -1,14 +1,11 @@
-/* Never include this file directly.  Include <linux/compiler.h> instead.  */
-
-/* These definitions are for GCC v3.x.  */
-#include <linux/compiler-gcc.h>
+#ifndef __LINUX_COMPILER_H
+#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
+#endif
 
 #if __GNUC_MINOR__ >= 3
 # define __used                        __attribute__((__used__))
-# define __attribute_used__    __used                          /* deprecated */
 #else
 # define __used                        __attribute__((__unused__))
-# define __attribute_used__    __used                          /* deprecated */
 #endif
 
 #if __GNUC_MINOR__ >= 4