[lkml]   [2010]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] x86, dumpstack: Fix unused variable warning.
    With allnoconfig, bp becomes unused. So put bp into defination of

    arch/x86/kernel/dumpstack.c: In function ‘dump_stack’:
    arch/x86/kernel/dumpstack.c:200: warning: unused variable ‘bp’

    Signed-off-by: Rakib Mullick <>

    diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c
    index 8474c99..fc5a253 100644
    --- a/arch/x86/kernel/dumpstack.c
    +++ b/arch/x86/kernel/dumpstack.c
    @@ -197,10 +197,10 @@ void show_stack(struct task_struct *task,
    unsigned long *sp)
    void dump_stack(void)
    - unsigned long bp = 0;
    unsigned long stack;

    + unsigned long bp = 0;
    if (!bp)
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2010-11-24 10:21    [W:0.020 / U:1.060 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site