diff options
author | Paul Burton <paul.burton@mips.com> | 2019-02-05 11:44:44 -0800 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-02-05 11:44:44 -0800 |
commit | 6782f26c0d4062bfd594a401e517fb9ed7d928d0 (patch) | |
tree | 3765bf431eef71e6d83705d9d6cbbbb9c50ea539 /arch | |
parent | 62c2766cf69d910bffb59d8b6b8d77e244ded80e (diff) | |
download | linux-6782f26c0d4062bfd594a401e517fb9ed7d928d0.tar.bz2 |
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: 4ebea49ce233 ("MIPS: mm: Un-inline get_new_mmu_context")
Fixes: 42d5b846574f ("MIPS: mm: Unify ASID version checks")
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/mm/context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/mm/context.c b/arch/mips/mm/context.c index a6adae550788..b25564090939 100644 --- a/arch/mips/mm/context.c +++ b/arch/mips/mm/context.c @@ -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) { @@ -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) { @@ -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) { |