]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: Make host_task_size a local variable
authorTiwei Bie <tiwei.btw@antgroup.com>
Mon, 27 Oct 2025 05:45:16 +0000 (13:45 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Oct 2025 15:37:12 +0000 (16:37 +0100)
commit691ff5914835a65151f3793e8b4dea0b230d0b6b
tree40ad6f59e38f24eb6a4f9073dba56db31f26555a
parent3c9b904f9033fb250db72d258bbdec791dc89405
um: Make host_task_size a local variable

Currently, host_task_size is a global variable, but it is only used
in linux_main() to compute stub_start and task_size. Make it a local
variable to limit its scope to where it is actually needed.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20251027054519.1996090-2-tiwei.bie@linux.dev
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/as-layout.h
arch/um/kernel/um_arch.c