lkml.org 
[lkml]   [2014]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RESEND PATCH v5 3.17-rc1 1/8] kdb: Remove currently unused kdbtab_t->cmd_flags
    Date
    From: Anton Vorontsov <anton.vorontsov@linaro.org>

    The struct member is never used in the code, so we can remove it.

    We will introduce real flags soon by renaming cmd_repeat to cmd_flags.

    Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
    Signed-off-by: John Stultz <john.stultz@linaro.org>
    Signed-off-by: Daniel Thompson <daniel.thompson@liaro.org>
    Cc: Jason Wessel <jason.wessel@windriver.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: kgdb-bugreport@lists.sourceforge.net
    ---
    kernel/debug/kdb/kdb_main.c | 1 -
    kernel/debug/kdb/kdb_private.h | 1 -
    2 files changed, 2 deletions(-)

    diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c
    index 379650b..cc02aa2 100644
    --- a/kernel/debug/kdb/kdb_main.c
    +++ b/kernel/debug/kdb/kdb_main.c
    @@ -2694,7 +2694,6 @@ int kdb_register_repeat(char *cmd,
    kp->cmd_func = func;
    kp->cmd_usage = usage;
    kp->cmd_help = help;
    - kp->cmd_flags = 0;
    kp->cmd_minlen = minlen;
    kp->cmd_repeat = repeat;

    diff --git a/kernel/debug/kdb/kdb_private.h b/kernel/debug/kdb/kdb_private.h
    index 7afd3c8..c4c46c7 100644
    --- a/kernel/debug/kdb/kdb_private.h
    +++ b/kernel/debug/kdb/kdb_private.h
    @@ -172,7 +172,6 @@ typedef struct _kdbtab {
    kdb_func_t cmd_func; /* Function to execute command */
    char *cmd_usage; /* Usage String for this command */
    char *cmd_help; /* Help message for this command */
    - short cmd_flags; /* Parsing flags */
    short cmd_minlen; /* Minimum legal # command
    * chars required */
    kdb_repeat_t cmd_repeat; /* Does command auto repeat on enter? */
    --
    1.9.3


    \
     
     \ /
      Last update: 2014-08-19 16:21    [W:3.365 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site