diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index b1e407a4fbda..e6ee2d95da7a 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -47,6 +47,8 @@ extern int console_printk[]; | |||
| 47 | #define default_console_loglevel (console_printk[3]) | 47 | #define default_console_loglevel (console_printk[3]) |
| 48 | 48 | ||
| 49 | struct completion; | 49 | struct completion; |
| 50 | struct pt_regs; | ||
| 51 | struct user; | ||
| 50 | 52 | ||
| 51 | /** | 53 | /** |
| 52 | * might_sleep - annotation for functions that can sleep | 54 | * might_sleep - annotation for functions that can sleep |
| @@ -123,6 +125,8 @@ extern int __kernel_text_address(unsigned long addr); | |||
| 123 | extern int kernel_text_address(unsigned long addr); | 125 | extern int kernel_text_address(unsigned long addr); |
| 124 | extern int session_of_pgrp(int pgrp); | 126 | extern int session_of_pgrp(int pgrp); |
| 125 | 127 | ||
| 128 | extern void dump_thread(struct pt_regs *regs, struct user *dump); | ||
| 129 | |||
| 126 | #ifdef CONFIG_PRINTK | 130 | #ifdef CONFIG_PRINTK |
| 127 | asmlinkage int vprintk(const char *fmt, va_list args) | 131 | asmlinkage int vprintk(const char *fmt, va_list args) |
| 128 | __attribute__ ((format (printf, 1, 0))); | 132 | __attribute__ ((format (printf, 1, 0))); |
| @@ -286,6 +290,15 @@ extern void dump_stack(void); | |||
| 286 | 1; \ | 290 | 1; \ |
| 287 | }) | 291 | }) |
| 288 | 292 | ||
| 293 | /* | ||
| 294 | * Check at compile time that 'function' is a certain type, or is a pointer | ||
| 295 | * to that type (needs to use typedef for the function type.) | ||
| 296 | */ | ||
| 297 | #define typecheck_fn(type,function) \ | ||
| 298 | ({ typeof(type) __tmp = function; \ | ||
| 299 | (void)__tmp; \ | ||
| 300 | }) | ||
| 301 | |||
| 289 | #endif /* __KERNEL__ */ | 302 | #endif /* __KERNEL__ */ |
| 290 | 303 | ||
| 291 | #define SI_LOAD_SHIFT 16 | 304 | #define SI_LOAD_SHIFT 16 |
| @@ -316,8 +329,6 @@ extern int randomize_va_space; | |||
| 316 | #endif | 329 | #endif |
| 317 | 330 | ||
| 318 | /* Trap pasters of __FUNCTION__ at compile-time */ | 331 | /* Trap pasters of __FUNCTION__ at compile-time */ |
| 319 | #if __GNUC__ > 2 || __GNUC_MINOR__ >= 95 | ||
| 320 | #define __FUNCTION__ (__func__) | 332 | #define __FUNCTION__ (__func__) |
| 321 | #endif | ||
| 322 | 333 | ||
| 323 | #endif | 334 | #endif |
