Skip to content

Commit 409a0c0

Browse files
btw616jmberg-intel
authored andcommitted
um: Make mm_list and mm_list_lock static
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>
1 parent 159e765 commit 409a0c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/um/kernel/skas/mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
/* Ensure the stub_data struct covers the allocated area */
2121
static_assert(sizeof(struct stub_data) == STUB_DATA_PAGES * UM_KERN_PAGE_SIZE);
2222

23-
spinlock_t mm_list_lock;
24-
struct list_head mm_list;
23+
static spinlock_t mm_list_lock;
24+
static struct list_head mm_list;
2525

2626
int init_new_context(struct task_struct *task, struct mm_struct *mm)
2727
{

0 commit comments

Comments
 (0)