From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFD77433E75 for ; Fri, 3 Jul 2026 21:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.70.13.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783115021; cv=none; b=oIOsUSzqrTdq6/7VYQP3Jp/7SUNAUM4TQdQvYZl2ChZ/ifvX8lLF6HhD7KPTjQ7CZLFItrDkQfGe6VsdjkfaLAFYdisaDnGZkfVG7CkCcpD2Rcqo5Ln4hP9PLEfyLt/nssg8L8H2fun8FjCiu8ebubzwB0BHkOyY2bPRO8fx7Og= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783115021; c=relaxed/simple; bh=bhbK85ALDz1TRf8e9nqhgYSJ/Hdg/nh36PKwd9ExeSk=; h=From:To:Cc:In-Reply-To:References:Date:Message-ID:MIME-Version: Content-Type:Subject; b=ZM53pXaLUh4KDkl36D3sHcKLuSTMoyKrjPzEpvZFtlDmUvvKH8x9YTxLySEYosvx0q/TFNOymyg53fjikDGPKUroaXs8FDwIc3HztkBaQ+eVc/PiauftnYd0IJjmO8VJCXZBOFk1SiVIfppLGrj2QVnYBA4xi9ACm8StaFv2Buw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com; spf=pass smtp.mailfrom=xmission.com; dkim=pass (1024-bit key) header.d=xmission.com header.i=@xmission.com header.b=cjSu3Iup; arc=none smtp.client-ip=166.70.13.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xmission.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xmission.com header.i=@xmission.com header.b="cjSu3Iup" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=xmission.com; s=xmission; h=Subject:Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bhbK85ALDz1TRf8e9nqhgYSJ/Hdg/nh36PKwd9ExeSk=; b=cjSu3Iupz9yFmrQChiDj1hotSC QSdVT2XM4tCguVb6l94KG1g6Nm19x+d4DAtSazXQEU8gwyM56AJSN8yvAnXLucULGI52fhfYbphaP zZgO8FMjskFf5tIsZLmFeBcYuPsyL0YcpdnOt2Ln9ijGl+Hl6GDVwOv8Ry8mNBhOEzsE=; Received: from in01.mta.xmission.com ([166.70.13.51]:58788) by out02.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1wflff-003GQn-JH; Fri, 03 Jul 2026 15:43:39 -0600 Received: from ip72-198-198-28.om.om.cox.net ([72.198.198.28]:47388 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1wflfd-00Dmcn-Js; Fri, 03 Jul 2026 15:43:39 -0600 From: "Eric W. Biederman" To: Oleg Nesterov Cc: Andrew Morton , Andy Lutomirski , Kees Cook , Kusaram Devineni , Peter Zijlstra , Thomas Gleixner , Will Drewry , linux-kernel@vger.kernel.org, Linus Torvalds , Christian Brauner In-Reply-To: <877bnb4uyw.fsf_-_@email.froward.int.ebiederm.org> (Eric W. Biederman's message of "Fri, 03 Jul 2026 16:35:51 -0500") References: <87o6gx9rc4.fsf@email.froward.int.ebiederm.org> <877bnh7tnf.fsf@email.froward.int.ebiederm.org> <877bnb4uyw.fsf_-_@email.froward.int.ebiederm.org> Date: Fri, 03 Jul 2026 16:43:32 -0500 Message-ID: <874iif21h7.fsf_-_@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1wflfd-00Dmcn-Js;;;mid=<874iif21h7.fsf_-_@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=72.198.198.28;;;frm=ebiederm@xmission.com;;;sPfnum=0;;;sPf=pass X-XM-AID: U2FsdGVkX1+hQ9fWLAMCRqRWHZu68wafFS1KGGLFzLo= X-Spam-Level: X-Spam-Virus: No X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.1 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4997] * 1.5 XMNoVowels Alpha-numberic number with no vowels * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 1397; Body=1 Fuz1=1 Fuz2=37] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa01 1397; Body=1 Fuz1=1 Fuz2=37 X-Spam-Combo: ;Oleg Nesterov X-Spam-Relay-Country: X-Spam-Timing: total 1533 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 4.6 (0.3%), b_tie_ro: 3.2 (0.2%), parse: 1.07 (0.1%), extract_message_metadata: 11 (0.7%), get_uri_detail_list: 1.14 (0.1%), tests_pri_-2000: 11 (0.7%), tests_pri_-1000: 2.1 (0.1%), tests_pri_-950: 0.97 (0.1%), tests_pri_-900: 0.80 (0.1%), tests_pri_-90: 47 (3.0%), check_bayes: 45 (3.0%), b_tokenize: 4.7 (0.3%), b_tok_get_all: 5 (0.3%), b_comp_prob: 1.13 (0.1%), b_tok_touch_all: 32 (2.1%), b_finish: 0.71 (0.0%), tests_pri_0: 193 (12.6%), check_dkim_signature: 0.38 (0.0%), check_dkim_adsp: 3.0 (0.2%), poll_dns_idle: 1250 (81.5%), tests_pri_10: 2.6 (0.2%), tests_pri_500: 1258 (82.0%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH 12/14] exit: Make do_group_exit static X-SA-Exim-Connect-IP: 166.70.13.51 X-SA-Exim-Rcpt-To: brauner@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, wad@chromium.org, tglx@kernel.org, peterz@infradead.org, kusaram@devineni.in, kees@kernel.org, luto@kernel.org, akpm@linux-foundation.org, oleg@redhat.com X-SA-Exim-Mail-From: ebiederm@xmission.com X-SA-Exim-Scanned: No (on out02.mta.xmission.com); SAEximRunCond expanded to false Now that do_group_exit only has a single caller in exit.c make it static so this is obvious. Signed-off-by: "Eric W. Biederman" --- include/linux/sched/task.h | 1 - kernel/exit.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index 41ed884cffc9..8b1a85a54999 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h @@ -90,7 +90,6 @@ static inline void exit_thread(struct task_struct *tsk) { } #endif -extern __noreturn void do_group_exit(int); extern void exit_files(struct task_struct *); extern void exit_itimers(struct task_struct *); diff --git a/kernel/exit.c b/kernel/exit.c index 120743301a82..57beab2b9485 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1097,7 +1097,7 @@ 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 __noreturn +static void __noreturn do_group_exit(int exit_code) { struct signal_struct *sig = current->signal; -- 2.41.0