]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Make mm_list and mm_list_lock static
authorTiwei Bie <tiwei.btw@antgroup.com>
Tue, 8 Jul 2025 09:04:01 +0000 (17:04 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Jul 2025 06:49:18 +0000 (08:49 +0200)
They are only used within mmu.c. Make them static.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250708090403.1067440-3-tiwei.bie@linux.dev
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/skas/mmu.c

index 849fafa4b54fdf660ec948f54827907cb6ae6375..afe9a2f251efd26f20cb4517f84d1b2e00e51a35 100644 (file)
@@ -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)
 {