summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2015-05-22 09:25:02 +0200
committerAlexander Graf <agraf@suse.de>2015-08-22 11:16:16 +0200
commit5358a96341a7fba23cbf0eaf01ce1ab4d738fc90 (patch)
tree49fc8843426bbf80fee0c6c98d17c204a3df63fb /arch/powerpc/kvm/book3s.c
parentKVM: PPC: Remove PPC970 from KVM_BOOK3S_64_HV text in Kconfig (diff)
downloadlinux-5358a96341a7fba23cbf0eaf01ce1ab4d738fc90.tar.xz
linux-5358a96341a7fba23cbf0eaf01ce1ab4d738fc90.zip
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>
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r--arch/powerpc/kvm/book3s.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c
index 05ea8fc7f829..53285d52e381 100644
--- a/arch/powerpc/kvm/book3s.c
+++ b/arch/powerpc/kvm/book3s.c
@@ -240,7 +240,8 @@ void kvmppc_core_queue_inst_storage(struct kvm_vcpu *vcpu, ulong flags)
kvmppc_book3s_queue_irqprio(vcpu, BOOK3S_INTERRUPT_INST_STORAGE);
}
-int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, unsigned int priority)
+static int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu,
+ unsigned int priority)
{
int deliver = 1;
int vec = 0;