Skip to content

Commit

Permalink
MIPS: Export mm switching functions used by KVM
Browse files Browse the repository at this point in the history
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")
  • Loading branch information
Paul Burton committed Feb 5, 2019
1 parent 62c2766 commit 6782f26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/mips/mm/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void get_new_mmu_context(struct mm_struct *mm)
set_cpu_context(cpu, mm, asid);
asid_cache(cpu) = asid;
}
EXPORT_SYMBOL_GPL(get_new_mmu_context);

void check_mmu_context(struct mm_struct *mm)
{
Expand All @@ -58,6 +59,7 @@ void check_mmu_context(struct mm_struct *mm)
if (!asid_versions_eq(cpu, cpu_context(cpu, mm), asid_cache(cpu)))
get_new_mmu_context(mm);
}
EXPORT_SYMBOL_GPL(check_mmu_context);

static void flush_context(void)
{
Expand Down Expand Up @@ -260,6 +262,7 @@ void check_switch_mmu_context(struct mm_struct *mm)
setup_pgd:
TLBMISS_HANDLER_SETUP_PGD(mm->pgd);
}
EXPORT_SYMBOL_GPL(check_switch_mmu_context);

static int mmid_init(void)
{
Expand Down

0 comments on commit 6782f26

Please sign in to comment.