kernel-forkc-put-set_max_threads-task_struct_whitelist-in-__init-section.patch removed from -mm tree
The quilt patch titled
Subject: kernel/fork.c: put set_max_threads()/task_struct_whitelist() in __init section
has been removed from the -mm tree. Its filename was
kernel-forkc-put-set_max_threads-task_struct_whitelist-in-__init-section.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: kernel/fork.c: put set_max_threads()/task_struct_whitelist() in __init section
Date: Mon, 1 Jul 2024 01:34:10 +0000
The functions set_max_threads() and task_struct_whitelist() are only used by fork_init() during bootup.
Let's add __init tag to them.
---
kernel/fork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/fork.c renamed from kernel/fork.c~kernel-forkc-put-set_max_threads-task_struct_whitelist-in-__init-section +2 -2
@@ -997,7 +997,7 @@ void __init __weak arch_task_cache_init(/* * set_max_threads */ -static void set_max_threads (unsigned int max_threads_suggested) +static void __init set_max_threads (unsigned int max_threads_suggested) {u64 threads;unsigned long nr_pages =PHYS_PFN (memblock_phys_mem_size () -memblock_reserved_size ());
@@ -1023,7 +1023,7 @@ static void set_max_threads(unsigned intint arch_task_struct_size__read_mostly ;#endif -static void task_struct_whitelist (unsigned long *offset,unsigned long *size) +static void __init task_struct_whitelist (unsigned long *offset,unsigned long *size) {/* Fetch thread_struct whitelist for the architecture. */ arch_thread_struct_whitelist (offset, size);
_
Patches currently in -mm which might be from [email protected] are
mm-page_alloc-put-__free_pages_core-in-__meminit-section.patch mm-use-zonelist_zone-to-get-zone.patch