summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s_hv_builtin.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-03-13 19:59:39 +0100
committerPaul Mackerras <paulus@samba.org>2012-04-03 16:42:14 +1000
commitb8e6f8ae511d88732247aa2af26bfd1bef21b2f4 (patch)
treed5b4829b97465aef2660ec4cef3f38b70b402608 /arch/powerpc/kvm/book3s_hv_builtin.c
parentb1a808ff436343956a6ae63178ea1810c5e5a3a1 (diff)
downloadblackbird-obmc-linux-b8e6f8ae511d88732247aa2af26bfd1bef21b2f4.tar.gz
blackbird-obmc-linux-b8e6f8ae511d88732247aa2af26bfd1bef21b2f4.zip
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 <joerg@alea.gnuu.de> Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv_builtin.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud