[<prev] [next>] [day] [month] [year] [list]
Message-ID: <YO9VbRoMnaOgqGbu@localhost.localdomain>
Date: Thu, 15 Jul 2021 00:21:49 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] sched: mark do_group_exit() as noreturn
do_group_exit() calls do_exit() which doesn't return.
Signed-off-by: Alexey Dobriyan <adobriyan@...il.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;
Powered by blists - more mailing lists