]> git.baikalelectronics.ru Git - kernel.git/commitdiff
csky: Fix function name in csky_alignment() and die()
authorNathan Chancellor <nathan@kernel.org>
Mon, 27 Dec 2021 18:48:51 +0000 (11:48 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 8 Jan 2022 15:43:03 +0000 (09:43 -0600)
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: 238bcd2dab75 ("exit: Add and use make_task_dead.")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Guo Ren <guoren@kernel.org>
Link: https://lkml.kernel.org/r/20211227184851.2297759-4-nathan@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
arch/csky/abiv1/alignment.c
arch/csky/kernel/traps.c

index 5e2fb45d605cffa5a63a11e53f1cccd1e623f76a..2df115d0e210535ec3f9c70c3c9361551dcade51 100644 (file)
@@ -294,7 +294,7 @@ bad_area:
                                __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);
index 88a47035b9256f96d0887babd52b65378f109564..50481d12d23684c52064e49241e3d167abfac100 100644 (file)
@@ -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)