Commit | Line | Data |
---|---|---|
94f582f8 RD |
1 | #ifndef __LINUX_COMPILER_H |
2 | #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead." | |
3 | #endif | |
1da177e4 | 4 | |
733ed6e4 | 5 | #if GCC_VERSION < 30200 |
6680598b IM |
6 | # error Sorry, your compiler is too old - please upgrade it. |
7 | #endif | |
8 | ||
733ed6e4 | 9 | #if GCC_VERSION >= 30300 |
0d7ebbbc | 10 | # define __used __attribute__((__used__)) |
1da177e4 | 11 | #else |
0d7ebbbc | 12 | # define __used __attribute__((__unused__)) |
1da177e4 LT |
13 | #endif |
14 | ||
733ed6e4 | 15 | #if GCC_VERSION >= 30400 |
1da177e4 LT |
16 | #define __must_check __attribute__((warn_unused_result)) |
17 | #endif | |
18 | ||
2521f2c2 | 19 | #ifdef CONFIG_GCOV_KERNEL |
733ed6e4 | 20 | # if GCC_VERSION < 30400 |
2521f2c2 PO |
21 | # error "GCOV profiling support for gcc versions below 3.4 not included" |
22 | # endif /* __GNUC_MINOR__ */ | |
23 | #endif /* CONFIG_GCOV_KERNEL */ |