aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-15 14:11:45 -0400
committerSage Weil <sage@inktank.com>2013-08-15 14:11:45 -0400
commitee3e542fec6e69bc9fb668698889a37d93950ddf (patch)
treee74ee766a4764769ef1d3d45d266b4dea64101d3 /include/linux/kernel.h
parentfe2a801b50c0bb8039d627e5ae1fec249d10ff39 (diff)
parentf1d6e17f540af37bb1891480143669ba7636c4cf (diff)
Merge remote-tracking branch 'linus/master' into testing
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h16
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)
197void might_fault(void); 197void might_fault(void);
198#else 198#else
199static inline void might_fault(void) 199static inline void might_fault(void) { }
200{
201 might_sleep();
202}
203#endif 200#endif
204 201
205extern struct atomic_notifier_head panic_notifier_list; 202extern struct atomic_notifier_head panic_notifier_list;
@@ -450,6 +447,8 @@ static inline char * __deprecated pack_hex_byte(char *buf, u8 byte)
450extern int hex_to_bin(char ch); 447extern int hex_to_bin(char ch);
451extern int __must_check hex2bin(u8 *dst, const char *src, size_t count); 448extern int __must_check hex2bin(u8 *dst, const char *src, size_t count);
452 449
450int 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, ...);
562extern __printf(2, 3) 561extern __printf(2, 3)
563int __trace_printk(unsigned long ip, const char *fmt, ...); 562int __trace_printk(unsigned long ip, const char *fmt, ...);
564 563
565extern int __trace_bputs(unsigned long ip, const char *str);
566extern 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})
599extern int __trace_bputs(unsigned long ip, const char *str);
600extern int __trace_puts(unsigned long ip, const char *str, int size);
603 601
604extern void trace_dump_stack(int skip); 602extern void trace_dump_stack(int skip);
605 603
@@ -631,7 +629,7 @@ extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode);
631static inline void tracing_start(void) { } 629static inline void tracing_start(void) { }
632static inline void tracing_stop(void) { } 630static inline void tracing_stop(void) { }
633static inline void ftrace_off_permanent(void) { } 631static inline void ftrace_off_permanent(void) { }
634static inline void trace_dump_stack(void) { } 632static inline void trace_dump_stack(int skip) { }
635 633
636static inline void tracing_on(void) { } 634static inline void tracing_on(void) { }
637static inline void tracing_off(void) { } 635static inline void tracing_off(void) { }