diff options
| author | Steve French <sfrench@us.ibm.com> | 2008-04-28 00:01:34 -0400 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2008-04-28 00:01:34 -0400 |
| commit | 1dbbb6077426f8ce63d6a59c5ac6613e1689cbde (patch) | |
| tree | 6141d4d7a8eb7c557705bdfa764137d4fd2e4924 /include/linux/compiler-gcc.h | |
| parent | d09e860cf07e7c9ee12920a09f5080e30a12a23a (diff) | |
| parent | 064922a805ec7aadfafdd27aa6b4908d737c3c1d (diff) | |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/compiler-gcc.h')
| -rw-r--r-- | include/linux/compiler-gcc.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index fe23792f05c1..b2fd7547b58d 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h | |||
| @@ -28,9 +28,16 @@ | |||
| 28 | #define __must_be_array(a) \ | 28 | #define __must_be_array(a) \ |
| 29 | BUILD_BUG_ON_ZERO(__builtin_types_compatible_p(typeof(a), typeof(&a[0]))) | 29 | BUILD_BUG_ON_ZERO(__builtin_types_compatible_p(typeof(a), typeof(&a[0]))) |
| 30 | 30 | ||
| 31 | #define inline inline __attribute__((always_inline)) | 31 | /* |
| 32 | #define __inline__ __inline__ __attribute__((always_inline)) | 32 | * Force always-inline if the user requests it so via the .config: |
| 33 | #define __inline __inline __attribute__((always_inline)) | 33 | */ |
| 34 | #if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \ | ||
| 35 | !defined(CONFIG_OPTIMIZE_INLINING) && (__GNUC__ >= 4) | ||
| 36 | # define inline inline __attribute__((always_inline)) | ||
| 37 | # define __inline__ __inline__ __attribute__((always_inline)) | ||
| 38 | # define __inline __inline __attribute__((always_inline)) | ||
| 39 | #endif | ||
| 40 | |||
| 34 | #define __deprecated __attribute__((deprecated)) | 41 | #define __deprecated __attribute__((deprecated)) |
| 35 | #define __packed __attribute__((packed)) | 42 | #define __packed __attribute__((packed)) |
| 36 | #define __weak __attribute__((weak)) | 43 | #define __weak __attribute__((weak)) |
