diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 20:31:38 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 20:31:38 -0500 |
| commit | 80c0531514516e43ae118ddf38424e06e5c3cb3c (patch) | |
| tree | 2eef8cf8fdf505b18f83078d1eb41167e98f5b54 /include/linux/kernel.h | |
| parent | a457aa6c2bdd743bbbffd3f9e4fdbd8c71f8af1b (diff) | |
| parent | 11b751ae8c8ca3fa24c85bd5a3e51dd9f95cda17 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/mingo/mutex-2.6
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index ca7ff8fdd090..d0e6ca3b00ef 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -286,6 +286,15 @@ extern void dump_stack(void); | |||
| 286 | 1; \ | 286 | 1; \ |
| 287 | }) | 287 | }) |
| 288 | 288 | ||
| 289 | /* | ||
| 290 | * Check at compile time that 'function' is a certain type, or is a pointer | ||
| 291 | * to that type (needs to use typedef for the function type.) | ||
| 292 | */ | ||
| 293 | #define typecheck_fn(type,function) \ | ||
| 294 | ({ typeof(type) __tmp = function; \ | ||
| 295 | (void)__tmp; \ | ||
| 296 | }) | ||
| 297 | |||
| 289 | #endif /* __KERNEL__ */ | 298 | #endif /* __KERNEL__ */ |
| 290 | 299 | ||
| 291 | #define SI_LOAD_SHIFT 16 | 300 | #define SI_LOAD_SHIFT 16 |
