lkml.org 
[lkml]   [2011]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] rt18: fix warnings in ftrace.h
    Date
    When CONFIG_FUNCTION_TRACER is not set usage of unknown struct ftrace_hash in
    ftrace_func_command results in a lot of warnings.


    Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
    ---
    include/linux/ftrace.h | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
    index ed0eb52..f0c0e8a 100644
    --- a/include/linux/ftrace.h
    +++ b/include/linux/ftrace.h
    @@ -19,6 +19,8 @@

    #include <asm/ftrace.h>

    +struct ftrace_hash;
    +
    #ifdef CONFIG_FUNCTION_TRACER

    extern int ftrace_enabled;
    @@ -29,8 +31,6 @@ ftrace_enable_sysctl(struct ctl_table *table, int write,

    typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip);

    -struct ftrace_hash;
    -
    enum {
    FTRACE_OPS_FL_ENABLED = 1 << 0,
    FTRACE_OPS_FL_GLOBAL = 1 << 1,
    --
    1.7.6.4


    --
    Scanned by MailScanner.



    \
     
     \ /
      Last update: 2011-10-17 09:05    [W:4.063 / U:0.204 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site