提交 7645e432 编写于 作者: H H. Peter Anvin 提交者: Linus Torvalds

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: NH. Peter Anvin <hpa@zytor.com>
Cc: Avi Kivity <avi@redhat.com>
LKML-Reference: <4C5C4E7A.8040603@kernel.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 1685e633
...@@ -281,11 +281,7 @@ static gfn_t pse36_gfn_delta(u32 gpte) ...@@ -281,11 +281,7 @@ static gfn_t pse36_gfn_delta(u32 gpte)
static void __set_spte(u64 *sptep, u64 spte) static void __set_spte(u64 *sptep, u64 spte)
{ {
#ifdef CONFIG_X86_64 set_64bit(sptep, spte);
set_64bit((unsigned long *)sptep, spte);
#else
set_64bit((unsigned long long *)sptep, spte);
#endif
} }
static u64 __xchg_spte(u64 *sptep, u64 new_spte) static u64 __xchg_spte(u64 *sptep, u64 new_spte)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册