From: H. Peter Anvin Date: Fri, 6 Aug 2010 19:18:11 +0000 (-0700) Subject: x86, kvm: Remove cast obsoleted by set_64bit() prototype cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7645e4320497b35ce9fb6c2269ebcd57af9fe735;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git x86, kvm: Remove cast obsoleted by set_64bit() prototype cleanup KVM ended up having to put a pretty ugly wrapper around set_64bit() in order to get the type right. Now set_64bit() takes the expected u64 type, and this wrapper can be cleaned up. Signed-off-by: H. Peter Anvin Cc: Avi Kivity LKML-Reference: <4C5C4E7A.8040603@kernel.org> Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 0dcc95e09876..311f6dad8951 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -281,11 +281,7 @@ static gfn_t pse36_gfn_delta(u32 gpte) static void __set_spte(u64 *sptep, u64 spte) { -#ifdef CONFIG_X86_64 - set_64bit((unsigned long *)sptep, spte); -#else - set_64bit((unsigned long long *)sptep, spte); -#endif + set_64bit(sptep, spte); } static u64 __xchg_spte(u64 *sptep, u64 new_spte)