]> git.baikalelectronics.ru Git - kernel.git/commitdiff
csky: Fix function name in csky_alignment() and die()
authorNathan Chancellor <nathan@kernel.org>
Thu, 2 Feb 2023 04:42:46 +0000 (20:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:49 +0000 (07:52 +0100)
commit 7e238a6c086e541e005899f50b4df0ff8640e72c upstream.

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>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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 af7562907f7fa738c19610187e59a13bed9b6111..8cdbbcb5ed8751dfc030890ee90dc647ce521ea1 100644 (file)
@@ -85,7 +85,7 @@ void die_if_kernel(char *str, struct pt_regs *regs, int nr)
        pr_err("%s: %08x\n", str, nr);
        show_regs(regs);
        add_taint(TAINT_DIE, LOCKDEP_NOW_UNRELIABLE);
-       make_dead_task(SIGSEGV);
+       make_task_dead(SIGSEGV);
 }
 
 void buserr(struct pt_regs *regs)