KVM: PPC: Fix warnings from sparse
authorThomas Huth <thuth@redhat.com>
Fri, 22 May 2015 07:25:02 +0000 (09:25 +0200)
committerAlexander Graf <agraf@suse.de>
Sat, 22 Aug 2015 09:16:16 +0000 (11:16 +0200)
commit5358a96341a7fba23cbf0eaf01ce1ab4d738fc90
tree49fc8843426bbf80fee0c6c98d17c204a3df63fb
parent129fd4233b62159d50c35fb6489cb22ee9c27415
KVM: PPC: Fix warnings from sparse

When compiling the KVM code for POWER with "make C=1", sparse
complains about functions missing proper prototypes and a 64-bit
constant missing the ULL prefix. Let's fix this by making the
functions static or by including the proper header with the
prototypes, and by appending a ULL prefix to the constant
PPC_MPPE_ADDRESS_MASK.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_32_mmu_host.c
arch/powerpc/kvm/book3s_64_mmu_host.c
arch/powerpc/kvm/book3s_emulate.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_paired_singles.c
arch/powerpc/kvm/powerpc.c