Skip to contentSkip to conversation

x86, kvm: Remove cast obsoleted by set_64bit() prototype cleanup

PATCH New H. Peter Anvin 1 participant 1 message Aug 6, 2010

Subsystems (2)
lore
Share & tools
lore

H. Peter Anvin

author reviewer
#0 lore raw

PATCH 1/1 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.

LKML-Reference: <[email protected]>

---
 arch/x86/kvm/mmu.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
arch/x86/kvm/mmu.c +1 -5
index 0dcc95e..311f6da 100644
@@ -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)
Signature · 1 line
1.7.2