diff options
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);  		(__x < 0) ? -__x : __x;		\  	}) -#ifdef CONFIG_PROVE_LOCKING +#if defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_DEBUG_ATOMIC_SLEEP)  void might_fault(void);  #else -static inline void might_fault(void) -{ -	might_sleep(); -} +static inline void might_fault(void) { }  #endif  extern struct atomic_notifier_head panic_notifier_list; @@ -450,6 +447,8 @@ static inline char * __deprecated pack_hex_byte(char *buf, u8 byte)  extern int hex_to_bin(char ch);  extern int __must_check hex2bin(u8 *dst, const char *src, size_t count); +int mac_pton(const char *s, u8 *mac); +  /*   * General tracing related utility functions - trace_printk(),   * tracing_on/tracing_off and tracing_start()/tracing_stop @@ -562,9 +561,6 @@ int __trace_bprintk(unsigned long ip, const char *fmt, ...);  extern __printf(2, 3)  int __trace_printk(unsigned long ip, const char *fmt, ...); -extern int __trace_bputs(unsigned long ip, const char *str); -extern int __trace_puts(unsigned long ip, const char *str, int size); -  /**   * trace_puts - write a string into the ftrace buffer   * @str: the string to record @@ -600,6 +596,8 @@ extern int __trace_puts(unsigned long ip, const char *str, int size);  	else								\  		__trace_puts(_THIS_IP_, str, strlen(str));		\  }) +extern int __trace_bputs(unsigned long ip, const char *str); +extern int __trace_puts(unsigned long ip, const char *str, int size);  extern void trace_dump_stack(int skip); @@ -631,7 +629,7 @@ extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode);  static inline void tracing_start(void) { }  static inline void tracing_stop(void) { }  static inline void ftrace_off_permanent(void) { } -static inline void trace_dump_stack(void) { } +static inline void trace_dump_stack(int skip) { }  static inline void tracing_on(void) { }  static inline void tracing_off(void) { }  | 
