diff options
author | Tejun Heo <tj@kernel.org> | 2010-01-04 19:17:33 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-01-04 19:17:33 -0500 |
commit | 32032df6c2f6c9c6b2ada2ce42322231824f70c2 (patch) | |
tree | b1ce838a37044bb38dfc128e2116ca35630e629a /include/linux/compiler.h | |
parent | 22b737f4c75197372d64afc6ed1bccd58c00e549 (diff) | |
parent | c5974b835a909ff15c3b7e6cf6789b5eb919f419 (diff) |
Merge branch 'master' into percpu
Conflicts:
arch/powerpc/platforms/pseries/hvCall.S
include/linux/percpu.h
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r-- | include/linux/compiler.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index abba8045c6ef..a5a472b10746 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
@@ -146,6 +146,11 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
146 | # define barrier() __memory_barrier() | 146 | # define barrier() __memory_barrier() |
147 | #endif | 147 | #endif |
148 | 148 | ||
149 | /* Unreachable code */ | ||
150 | #ifndef unreachable | ||
151 | # define unreachable() do { } while (1) | ||
152 | #endif | ||
153 | |||
149 | #ifndef RELOC_HIDE | 154 | #ifndef RELOC_HIDE |
150 | # define RELOC_HIDE(ptr, off) \ | 155 | # define RELOC_HIDE(ptr, off) \ |
151 | ({ unsigned long __ptr; \ | 156 | ({ unsigned long __ptr; \ |
@@ -215,6 +220,10 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
215 | # define __maybe_unused /* unimplemented */ | 220 | # define __maybe_unused /* unimplemented */ |
216 | #endif | 221 | #endif |
217 | 222 | ||
223 | #ifndef __always_unused | ||
224 | # define __always_unused /* unimplemented */ | ||
225 | #endif | ||
226 | |||
218 | #ifndef noinline | 227 | #ifndef noinline |
219 | #define noinline | 228 | #define noinline |
220 | #endif | 229 | #endif |
@@ -268,6 +277,17 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
268 | # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | 277 | # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) |
269 | #endif | 278 | #endif |
270 | 279 | ||
280 | /* Compile time object size, -1 for unknown */ | ||
281 | #ifndef __compiletime_object_size | ||
282 | # define __compiletime_object_size(obj) -1 | ||
283 | #endif | ||
284 | #ifndef __compiletime_warning | ||
285 | # define __compiletime_warning(message) | ||
286 | #endif | ||
287 | #ifndef __compiletime_error | ||
288 | # define __compiletime_error(message) | ||
289 | #endif | ||
290 | |||
271 | /* | 291 | /* |
272 | * Prevent the compiler from merging or refetching accesses. The compiler | 292 | * Prevent the compiler from merging or refetching accesses. The compiler |
273 | * is also forbidden from reordering successive instances of ACCESS_ONCE(), | 293 | * is also forbidden from reordering successive instances of ACCESS_ONCE(), |