diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 8317ec4b9f3b..7d5b10ff63e0 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -171,6 +171,11 @@ static inline void might_fault(void) | |||
| 171 | } | 171 | } |
| 172 | #endif | 172 | #endif |
| 173 | 173 | ||
| 174 | struct va_format { | ||
| 175 | const char *fmt; | ||
| 176 | va_list *va; | ||
| 177 | }; | ||
| 178 | |||
| 174 | extern struct atomic_notifier_head panic_notifier_list; | 179 | extern struct atomic_notifier_head panic_notifier_list; |
| 175 | extern long (*panic_blink)(long time); | 180 | extern long (*panic_blink)(long time); |
| 176 | NORET_TYPE void panic(const char * fmt, ...) | 181 | NORET_TYPE void panic(const char * fmt, ...) |
| @@ -247,6 +252,13 @@ extern struct pid *session_of_pgrp(struct pid *pgrp); | |||
| 247 | #define FW_WARN "[Firmware Warn]: " | 252 | #define FW_WARN "[Firmware Warn]: " |
| 248 | #define FW_INFO "[Firmware Info]: " | 253 | #define FW_INFO "[Firmware Info]: " |
| 249 | 254 | ||
| 255 | /* | ||
| 256 | * HW_ERR | ||
| 257 | * Add this to a message for hardware errors, so that user can report | ||
| 258 | * it to hardware vendor instead of LKML or software vendor. | ||
| 259 | */ | ||
| 260 | #define HW_ERR "[Hardware Error]: " | ||
| 261 | |||
| 250 | #ifdef CONFIG_PRINTK | 262 | #ifdef CONFIG_PRINTK |
| 251 | asmlinkage int vprintk(const char *fmt, va_list args) | 263 | asmlinkage int vprintk(const char *fmt, va_list args) |
| 252 | __attribute__ ((format (printf, 1, 0))); | 264 | __attribute__ ((format (printf, 1, 0))); |
| @@ -508,9 +520,6 @@ extern void tracing_start(void); | |||
| 508 | extern void tracing_stop(void); | 520 | extern void tracing_stop(void); |
| 509 | extern void ftrace_off_permanent(void); | 521 | extern void ftrace_off_permanent(void); |
| 510 | 522 | ||
| 511 | extern void | ||
| 512 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); | ||
| 513 | |||
| 514 | static inline void __attribute__ ((format (printf, 1, 2))) | 523 | static inline void __attribute__ ((format (printf, 1, 2))) |
| 515 | ____trace_printk_check_format(const char *fmt, ...) | 524 | ____trace_printk_check_format(const char *fmt, ...) |
| 516 | { | 525 | { |
| @@ -586,8 +595,6 @@ __ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap); | |||
| 586 | 595 | ||
| 587 | extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode); | 596 | extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode); |
| 588 | #else | 597 | #else |
| 589 | static inline void | ||
| 590 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } | ||
| 591 | static inline int | 598 | static inline int |
| 592 | trace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); | 599 | trace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); |
| 593 | 600 | ||
| @@ -728,12 +735,6 @@ extern int do_sysinfo(struct sysinfo *info); | |||
| 728 | 735 | ||
| 729 | #endif /* __KERNEL__ */ | 736 | #endif /* __KERNEL__ */ |
| 730 | 737 | ||
| 731 | #ifndef __EXPORTED_HEADERS__ | ||
| 732 | #ifndef __KERNEL__ | ||
| 733 | #warning Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders | ||
| 734 | #endif /* __KERNEL__ */ | ||
| 735 | #endif /* __EXPORTED_HEADERS__ */ | ||
| 736 | |||
| 737 | #define SI_LOAD_SHIFT 16 | 738 | #define SI_LOAD_SHIFT 16 |
| 738 | struct sysinfo { | 739 | struct sysinfo { |
| 739 | long uptime; /* Seconds since boot */ | 740 | long uptime; /* Seconds since boot */ |
