mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-30 18:54:15 +10:00
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>
This commit is contained in:
parent
159e76514b
commit
409a0c00c4
@ -20,8 +20,8 @@
|
|||||||
/* Ensure the stub_data struct covers the allocated area */
|
/* Ensure the stub_data struct covers the allocated area */
|
||||||
static_assert(sizeof(struct stub_data) == STUB_DATA_PAGES * UM_KERN_PAGE_SIZE);
|
static_assert(sizeof(struct stub_data) == STUB_DATA_PAGES * UM_KERN_PAGE_SIZE);
|
||||||
|
|
||||||
spinlock_t mm_list_lock;
|
static spinlock_t mm_list_lock;
|
||||||
struct list_head mm_list;
|
static struct list_head mm_list;
|
||||||
|
|
||||||
int init_new_context(struct task_struct *task, struct mm_struct *mm)
|
int init_new_context(struct task_struct *task, struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user