From: Tiwei Bie Date: Tue, 8 Jul 2025 09:04:01 +0000 (+0800) Subject: um: Make mm_list and mm_list_lock static X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409a0c00c490d3b7c077e316a9261462241acda7;p=thirdparty%2Fkernel%2Flinux.git um: Make mm_list and mm_list_lock static They are only used within mmu.c. Make them static. Signed-off-by: Tiwei Bie Link: https://patch.msgid.link/20250708090403.1067440-3-tiwei.bie@linux.dev Signed-off-by: Johannes Berg --- diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c index 849fafa4b54fd..afe9a2f251efd 100644 --- a/arch/um/kernel/skas/mmu.c +++ b/arch/um/kernel/skas/mmu.c @@ -20,8 +20,8 @@ /* Ensure the stub_data struct covers the allocated area */ static_assert(sizeof(struct stub_data) == STUB_DATA_PAGES * UM_KERN_PAGE_SIZE); -spinlock_t mm_list_lock; -struct list_head mm_list; +static spinlock_t mm_list_lock; +static struct list_head mm_list; int init_new_context(struct task_struct *task, struct mm_struct *mm) {