[sheepdog] [PATCH] trace: fix compile error without --enable-trace

Liu Yuan namei.unix at gmail.com
Fri Aug 31 05:39:51 CEST 2012


On 08/31/2012 11:23 AM, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/trace/trace.h |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/sheep/trace/trace.h b/sheep/trace/trace.h
> index 19e79c5..fa8eb05 100644
> --- a/sheep/trace/trace.h
> +++ b/sheep/trace/trace.h
> @@ -64,11 +64,11 @@ extern unsigned long trace_return_call(void);
>    static inline int trace_init(void) { return 0; }
>    static inline int trace_enable(void) { return 0; }
>    static inline int trace_disable(void) { return 0; }
> -  static inline uint32_t trace_buffer_pop(void *buf) { return 0; }
> +  static inline uint32_t trace_buffer_pop(void *buf, uint32_t len) { return 0; }
>    static inline void trace_buffer_push(int cpuid, struct
>  				       trace_graph_item *item) { return; }
> -  extern inline void short_thread_begin(void) { return; }
> -  extern inline void short_thread_end(void) { return; }
> +  static inline void short_thread_begin(void) { return; }
> +  static inline void short_thread_end(void) { return; }
>  
>  #endif /* ENABLE_TRACE */
>  
> 

Applied.

Thanks,
Yuan



More information about the sheepdog mailing list