* [PATCH] sched: mark do_group_exit() as noreturn
@ 2021-07-14 21:21 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2021-07-14 21:21 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
do_group_exit() calls do_exit() which doesn't return.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
include/linux/sched/task.h | 2 +-
kernel/exit.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -77,7 +77,7 @@ static inline void exit_thread(struct task_struct *tsk)
{
}
#endif
-extern void do_group_exit(int);
+__noreturn void do_group_exit(int);
extern void exit_files(struct task_struct *);
extern void exit_itimers(struct signal_struct *);
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -895,8 +895,8 @@ SYSCALL_DEFINE1(exit, int, error_code)
* Take down every thread in the group. This is called by fatal signals
* as well as by sys_exit_group (below).
*/
-void
-do_group_exit(int exit_code)
+__noreturn
+void do_group_exit(int exit_code)
{
struct signal_struct *sig = current->signal;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-14 21:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14 21:21 [PATCH] sched: mark do_group_exit() as noreturn Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®