From: Alexander Graf Date: Tue, 13 Mar 2012 18:59:39 +0000 (+0100) Subject: KVM: PPC: Book3S: Compile fix for ppc32 in HIOR access code X-Git-Tag: v3.4-rc2~2^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e6f8ae511d88732247aa2af26bfd1bef21b2f4;p=pandora-kernel.git KVM: PPC: Book3S: Compile fix for ppc32 in HIOR access code We were failing to compile on book3s_32 with the following errors: arch/powerpc/kvm/book3s_pr.c:883:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] arch/powerpc/kvm/book3s_pr.c:898:79: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] Fix this by explicity casting the u64 to long before we use it as a pointer. Also, on PPC32 we can not use get_user/put_user for 64bit wide variables, as there is no single instruction that could load or store variables that big. So instead, we have to use copy_from/to_user which works everywhere. Reported-by: Jörg Sommer Signed-off-by: Alexander Graf Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed