forked from Minki/linux
ab4ababdf7
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:
|
||
---|---|---|
.. | ||
.gitignore | ||
asm-offsets.c | ||
entry.S | ||
h8300_ksyms.c | ||
head_ram.S | ||
head_rom.S | ||
irq.c | ||
kgdb.c | ||
Makefile | ||
module.c | ||
process.c | ||
ptrace_h.c | ||
ptrace_s.c | ||
ptrace.c | ||
setup.c | ||
signal.c | ||
sim-console.c | ||
syscalls.c | ||
traps.c | ||
vmlinux.lds.S |