patch-2.4.27 linux-2.4.27/include/linux/compiler.h

Next file: linux-2.4.27/include/linux/crypto.h
Previous file: linux-2.4.27/include/linux/cciss_ioctl.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/include/linux/compiler.h linux-2.4.27/include/linux/compiler.h
@@ -14,7 +14,7 @@
 #define unlikely(x)	__builtin_expect((x),0)
 
 #if __GNUC__ > 3
-#define __attribute_used__	__attribute((__used__))
+#define __attribute_used__	__attribute__((__used__))
 #elif __GNUC__ == 3
 #if  __GNUC_MINOR__ >= 3
 # define __attribute_used__	__attribute__((__used__))
@@ -27,4 +27,15 @@
 #define __attribute_used__	/* not implemented */
 #endif /* __GNUC__ */
 
+#if __GNUC__ == 3
+#if __GNUC_MINOR__ >= 1
+# define inline         __inline__ __attribute__((always_inline))
+# define __inline__     __inline__ __attribute__((always_inline))
+# define __inline       __inline__ __attribute__((always_inline))
+#endif
+#endif
+
+/* no checker support, so we unconditionally define this as (null) */
+#define __user
+
 #endif /* __LINUX_COMPILER_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)