lkml.org 
[lkml]   [2021]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/3] csky: Fix function name in csky_alignment() and die()
    Date
    When building ARCH=csky defconfig:

    arch/csky/kernel/traps.c: In function 'die':
    arch/csky/kernel/traps.c:112:17: error: implicit declaration of function
    'make_dead_task' [-Werror=implicit-function-declaration]
    112 | make_dead_task(SIGSEGV);
    | ^~~~~~~~~~~~~~

    The function's name is make_task_dead(), change it so there is no more
    build error.

    Fixes: 0e25498f8cd4 ("exit: Add and use make_task_dead.")
    Signed-off-by: Nathan Chancellor <nathan@kernel.org>
    ---
    arch/csky/abiv1/alignment.c | 2 +-
    arch/csky/kernel/traps.c | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/arch/csky/abiv1/alignment.c b/arch/csky/abiv1/alignment.c
    index 5e2fb45d605c..2df115d0e210 100644
    --- a/arch/csky/abiv1/alignment.c
    +++ b/arch/csky/abiv1/alignment.c
    @@ -294,7 +294,7 @@ void csky_alignment(struct pt_regs *regs)
    __func__, opcode, rz, rx, imm, addr);
    show_regs(regs);
    bust_spinlocks(0);
    - make_dead_task(SIGKILL);
    + make_task_dead(SIGKILL);
    }

    force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)addr);
    diff --git a/arch/csky/kernel/traps.c b/arch/csky/kernel/traps.c
    index 88a47035b925..50481d12d236 100644
    --- a/arch/csky/kernel/traps.c
    +++ b/arch/csky/kernel/traps.c
    @@ -109,7 +109,7 @@ void die(struct pt_regs *regs, const char *str)
    if (panic_on_oops)
    panic("Fatal exception");
    if (ret != NOTIFY_STOP)
    - make_dead_task(SIGSEGV);
    + make_task_dead(SIGSEGV);
    }

    void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr)
    --
    2.34.1
    \
     
     \ /
      Last update: 2021-12-27 19:51    [W:3.779 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site