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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 159e765 commit 409a0c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)