From: Eduardo Habkost Date: Wed, 30 Jan 2008 12:33:20 +0000 (+0100) Subject: x86: don't set pagetable_setup_{start,done} hooks on 64-bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8dd8eec57254adac48e46c6d191cb24161d8b4d;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git x86: don't set pagetable_setup_{start,done} hooks on 64-bit paravirt_pagetable_setup_{start,done}() are not used (yet) under x86_64, and native_pagetable_setup_{start,done}() don't exist on x86_64. So they don't need to be set. Signed-off-by: Eduardo Habkost Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index c67d33103b9..37f38b71c50 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -367,8 +367,10 @@ struct pv_apic_ops pv_apic_ops = { }; struct pv_mmu_ops pv_mmu_ops = { +#ifndef CONFIG_X86_64 .pagetable_setup_start = native_pagetable_setup_start, .pagetable_setup_done = native_pagetable_setup_done, +#endif .read_cr2 = native_read_cr2, .write_cr2 = native_write_cr2,