ARM: imx: use SOC_IMX25 instead of ARCH_MX25 for multi-SoC
[linux-2.6.git] / include / linux / compiler-gcc3.h
blobb721129e0469f12decf2d764b421728e608e5e00
1 #ifndef __LINUX_COMPILER_H
2 #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
3 #endif
5 #if __GNUC_MINOR__ < 2
6 # error Sorry, your compiler is too old - please upgrade it.
7 #endif
9 #if __GNUC_MINOR__ >= 3
10 # define __used __attribute__((__used__))
11 #else
12 # define __used __attribute__((__unused__))
13 #endif
15 #if __GNUC_MINOR__ >= 4
16 #define __must_check __attribute__((warn_unused_result))
17 #endif
19 #ifdef CONFIG_GCOV_KERNEL
20 # if __GNUC_MINOR__ < 4
21 # error "GCOV profiling support for gcc versions below 3.4 not included"
22 # endif /* __GNUC_MINOR__ */
23 #endif /* CONFIG_GCOV_KERNEL */
26 * A trick to suppress uninitialized variable warning without generating any
27 * code
29 #define uninitialized_var(x) x = x
31 #define __always_inline inline __attribute__((always_inline))