diff options
author | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
commit | ee3e542fec6e69bc9fb668698889a37d93950ddf (patch) | |
tree | e74ee766a4764769ef1d3d45d266b4dea64101d3 /include/linux/kernel.h | |
parent | fe2a801b50c0bb8039d627e5ae1fec249d10ff39 (diff) | |
parent | f1d6e17f540af37bb1891480143669ba7636c4cf (diff) |
Merge remote-tracking branch 'linus/master' into testing
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index e9ef6d6b51d5..482ad2d84a32 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -193,13 +193,10 @@ extern int _cond_resched(void); | |||
193 | (__x < 0) ? -__x : __x; \ | 193 | (__x < 0) ? -__x : __x; \ |
194 | }) | 194 | }) |
195 | 195 | ||
196 | #ifdef CONFIG_PROVE_LOCKING | 196 | #if defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_DEBUG_ATOMIC_SLEEP) |
197 | void might_fault(void); | 197 | void might_fault(void); |
198 | #else | 198 | #else |
199 | static inline void might_fault(void) | 199 | static inline void might_fault(void) { } |
200 | { | ||
201 | might_sleep(); | ||
202 | } | ||
203 | #endif | 200 | #endif |
204 | 201 | ||
205 | extern struct atomic_notifier_head panic_notifier_list; | 202 | extern struct atomic_notifier_head panic_notifier_list; |
@@ -450,6 +447,8 @@ static inline char * __deprecated pack_hex_byte(char *buf, u8 byte) | |||
450 | extern int hex_to_bin(char ch); | 447 | extern int hex_to_bin(char ch); |
451 | extern int __must_check hex2bin(u8 *dst, const char *src, size_t count); | 448 | extern int __must_check hex2bin(u8 *dst, const char *src, size_t count); |
452 | 449 | ||
450 | int mac_pton(const char *s, u8 *mac); | ||
451 | |||
453 | /* | 452 | /* |
454 | * General tracing related utility functions - trace_printk(), | 453 | * General tracing related utility functions - trace_printk(), |
455 | * tracing_on/tracing_off and tracing_start()/tracing_stop | 454 | * tracing_on/tracing_off and tracing_start()/tracing_stop |
@@ -562,9 +561,6 @@ int __trace_bprintk(unsigned long ip, const char *fmt, ...); | |||
562 | extern __printf(2, 3) | 561 | extern __printf(2, 3) |
563 | int __trace_printk(unsigned long ip, const char *fmt, ...); | 562 | int __trace_printk(unsigned long ip, const char *fmt, ...); |
564 | 563 | ||
565 | extern int __trace_bputs(unsigned long ip, const char *str); | ||
566 | extern int __trace_puts(unsigned long ip, const char *str, int size); | ||
567 | |||
568 | /** | 564 | /** |
569 | * trace_puts - write a string into the ftrace buffer | 565 | * trace_puts - write a string into the ftrace buffer |
570 | * @str: the string to record | 566 | * @str: the string to record |
@@ -600,6 +596,8 @@ extern int __trace_puts(unsigned long ip, const char *str, int size); | |||
600 | else \ | 596 | else \ |
601 | __trace_puts(_THIS_IP_, str, strlen(str)); \ | 597 | __trace_puts(_THIS_IP_, str, strlen(str)); \ |
602 | }) | 598 | }) |
599 | extern int __trace_bputs(unsigned long ip, const char *str); | ||
600 | extern int __trace_puts(unsigned long ip, const char *str, int size); | ||
603 | 601 | ||
604 | extern void trace_dump_stack(int skip); | 602 | extern void trace_dump_stack(int skip); |
605 | 603 | ||
@@ -631,7 +629,7 @@ extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode); | |||
631 | static inline void tracing_start(void) { } | 629 | static inline void tracing_start(void) { } |
632 | static inline void tracing_stop(void) { } | 630 | static inline void tracing_stop(void) { } |
633 | static inline void ftrace_off_permanent(void) { } | 631 | static inline void ftrace_off_permanent(void) { } |
634 | static inline void trace_dump_stack(void) { } | 632 | static inline void trace_dump_stack(int skip) { } |
635 | 633 | ||
636 | static inline void tracing_on(void) { } | 634 | static inline void tracing_on(void) { } |
637 | static inline void tracing_off(void) { } | 635 | static inline void tracing_off(void) { } |