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 | |
6680598b IM |
5 | #if __GNUC_MINOR__ < 2 |
6 | # error Sorry, your compiler is too old - please upgrade it. | |
7 | #endif | |
8 | ||
1da177e4 | 9 | #if __GNUC_MINOR__ >= 3 |
0d7ebbbc | 10 | # define __used __attribute__((__used__)) |
1da177e4 | 11 | #else |
0d7ebbbc | 12 | # define __used __attribute__((__unused__)) |
1da177e4 LT |
13 | #endif |
14 | ||
1da177e4 LT |
15 | #if __GNUC_MINOR__ >= 4 |
16 | #define __must_check __attribute__((warn_unused_result)) | |
17 | #endif | |
18 | ||
94909914 BP |
19 | /* |
20 | * A trick to suppress uninitialized variable warning without generating any | |
21 | * code | |
22 | */ | |
23 | #define uninitialized_var(x) x = x | |
24 | ||
40fc55cb | 25 | #define __always_inline inline __attribute__((always_inline)) |