Blame view
include/linux/compiler-gcc3.h
823 Bytes
94f582f82
|
1 2 3 |
#ifndef __LINUX_COMPILER_H #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead." #endif |
1da177e4c
|
4 |
|
6680598b4
|
5 6 7 |
#if __GNUC_MINOR__ < 2 # error Sorry, your compiler is too old - please upgrade it. #endif |
1da177e4c
|
8 |
#if __GNUC_MINOR__ >= 3 |
0d7ebbbc6
|
9 |
# define __used __attribute__((__used__)) |
1da177e4c
|
10 |
#else |
0d7ebbbc6
|
11 |
# define __used __attribute__((__unused__)) |
1da177e4c
|
12 |
#endif |
1da177e4c
|
13 14 15 |
#if __GNUC_MINOR__ >= 4 #define __must_check __attribute__((warn_unused_result)) #endif |
2521f2c22
|
16 17 18 19 20 |
#ifdef CONFIG_GCOV_KERNEL # if __GNUC_MINOR__ < 4 # error "GCOV profiling support for gcc versions below 3.4 not included" # endif /* __GNUC_MINOR__ */ #endif /* CONFIG_GCOV_KERNEL */ |
949099148
|
21 22 23 24 25 |
/* * A trick to suppress uninitialized variable warning without generating any * code */ #define uninitialized_var(x) x = x |
40fc55cb6
|
26 |
#define __always_inline inline __attribute__((always_inline)) |