diff options
| author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
| commit | 4854c7b27f0975a2b629f35ea3996d2968eb7c4f (patch) | |
| tree | 4102bdb70289764a2058aff0f907b13d7cf0e0d1 /include/linux/compiler.h | |
| parent | 3cbd5b32cb625f5c0f1b1476d154fac873dd49ce (diff) | |
| parent | fcc18e83e1f6fd9fa6b333735bf0fcd530655511 (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f23d3c6fc2c0..9b4f11094937 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
| @@ -78,6 +78,7 @@ extern void __chk_io_ptr(void __iomem *); | |||
| 78 | 78 | ||
| 79 | #endif /* __ASSEMBLY__ */ | 79 | #endif /* __ASSEMBLY__ */ |
| 80 | 80 | ||
| 81 | #ifdef __KERNEL__ | ||
| 81 | /* | 82 | /* |
| 82 | * Allow us to mark functions as 'deprecated' and have gcc emit a nice | 83 | * Allow us to mark functions as 'deprecated' and have gcc emit a nice |
| 83 | * warning for each use, in hopes of speeding the functions removal. | 84 | * warning for each use, in hopes of speeding the functions removal. |
| @@ -127,6 +128,16 @@ extern void __chk_io_ptr(void __iomem *); | |||
| 127 | # define __attribute_pure__ /* unimplemented */ | 128 | # define __attribute_pure__ /* unimplemented */ |
| 128 | #endif | 129 | #endif |
| 129 | 130 | ||
| 131 | #ifndef noinline | ||
| 132 | #define noinline | ||
| 133 | #endif | ||
| 134 | |||
| 135 | #ifndef __always_inline | ||
| 136 | #define __always_inline inline | ||
| 137 | #endif | ||
| 138 | |||
| 139 | #endif /* __KERNEL__ */ | ||
| 140 | |||
| 130 | /* | 141 | /* |
| 131 | * From the GCC manual: | 142 | * From the GCC manual: |
| 132 | * | 143 | * |
| @@ -145,12 +156,4 @@ extern void __chk_io_ptr(void __iomem *); | |||
| 145 | # define __attribute_const__ /* unimplemented */ | 156 | # define __attribute_const__ /* unimplemented */ |
| 146 | #endif | 157 | #endif |
| 147 | 158 | ||
| 148 | #ifndef noinline | ||
| 149 | #define noinline | ||
| 150 | #endif | ||
| 151 | |||
| 152 | #ifndef __always_inline | ||
| 153 | #define __always_inline inline | ||
| 154 | #endif | ||
| 155 | |||
| 156 | #endif /* __LINUX_COMPILER_H */ | 159 | #endif /* __LINUX_COMPILER_H */ |
