Skip to content

Commit 6782f26

Browse files
committed
MIPS: Export mm switching functions used by KVM
KVM makes use of check_switch_mmu_context(), check_mmu_context() & get_new_mmu_context() which are no longer static inline functions in a header. As such they need to be exported for KVM to successfully build as a module, which was previously overlooked. Add the missing exports. Signed-off-by: Paul Burton <paul.burton@mips.com> Fixes: 4ebea49 ("MIPS: mm: Un-inline get_new_mmu_context") Fixes: 42d5b84 ("MIPS: mm: Unify ASID version checks")
1 parent 62c2766 commit 6782f26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/mips/mm/context.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void get_new_mmu_context(struct mm_struct *mm)
4242
set_cpu_context(cpu, mm, asid);
4343
asid_cache(cpu) = asid;
4444
}
45+
EXPORT_SYMBOL_GPL(get_new_mmu_context);
4546

4647
void check_mmu_context(struct mm_struct *mm)
4748
{
@@ -58,6 +59,7 @@ void check_mmu_context(struct mm_struct *mm)
5859
if (!asid_versions_eq(cpu, cpu_context(cpu, mm), asid_cache(cpu)))
5960
get_new_mmu_context(mm);
6061
}
62+
EXPORT_SYMBOL_GPL(check_mmu_context);
6163

6264
static void flush_context(void)
6365
{
@@ -260,6 +262,7 @@ void check_switch_mmu_context(struct mm_struct *mm)
260262
setup_pgd:
261263
TLBMISS_HANDLER_SETUP_PGD(mm->pgd);
262264
}
265+
EXPORT_SYMBOL_GPL(check_switch_mmu_context);
263266

264267
static int mmid_init(void)
265268
{

0 commit comments

Comments
 (0)