WSL2-Linux-Kernel/arch/h8300/kernel
Nathan Chancellor 2ea497d153 h8300: Fix build errors from do_exit() to make_task_dead() transition
commit ab4ababdf7 upstream.

When building ARCH=h8300 defconfig:

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

arch/h8300/mm/fault.c: In function 'do_page_fault':
arch/h8300/mm/fault.c:54:2: error: implicit declaration of function
'make_dead_task' [-Werror=implicit-function-declaration]
   54 |  make_dead_task(SIGKILL);
      |  ^~~~~~~~~~~~~~

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

Additionally, include linux/sched/task.h in arch/h8300/kernel/traps.c
to avoid the same error because do_exit()'s declaration is in kernel.h
but make_task_dead()'s is in task.h, which is not included in traps.c.

Fixes: 0e25498f8c ("exit: Add and use make_task_dead.")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lkml.kernel.org/r/20211227184851.2297759-3-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>
2023-02-01 08:27:21 +01:00
..
.gitignore h8300: ignore vmlinux.lds 2020-04-23 16:41:26 +09:00
Makefile h8300: use dma-direct 2018-01-15 09:35:17 +01:00
asm-offsets.c sched,arch: Remove unused TASK_STATE offsets 2021-06-18 11:43:09 +02:00
entry.S sched/rt, h8300: Use CONFIG_PREEMPTION 2019-12-08 14:37:33 +01:00
h8300_ksyms.c h8300: remove stale strncpy_from_user 2021-07-23 14:40:00 +02:00
head_ram.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
head_rom.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
irq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
kgdb.c kgdb/treewide: constify struct kgdb_arch arch_kgdb_ops 2018-12-30 08:33:06 +00:00
module.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
process.c sched: Introduce task_is_running() 2021-06-18 11:43:07 +02:00
ptrace.c h8300: switch to ->regset_get() 2020-07-27 14:31:10 -04:00
ptrace_h.c signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
ptrace_s.c signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
setup.c h8300: convert to setup_initial_init_mm() 2021-07-08 11:48:21 -07:00
signal.c h8300: add support for TIF_NOTIFY_SIGNAL 2020-12-12 09:17:38 -07:00
sim-console.c h8300: gcc-8.1 fix 2018-08-22 19:14:18 +09:00
syscalls.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
traps.c h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-01 08:27:21 +01:00
vmlinux.lds.S h8300: Move EXCEPTION_TABLE to RO_DATA segment 2019-11-04 18:12:55 +01:00