ARM: KVM: fix kvm_arch_{prepare,commit}_memory_region
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 15 Feb 2013 19:20:06 +0000 (19:20 +0000)
committerGleb Natapov <gleb@redhat.com>
Mon, 25 Feb 2013 09:47:28 +0000 (11:47 +0200)
Commit f82a8cfe9 (KVM: struct kvm_memory_slot.user_alloc -> bool)
broke the ARM KVM port by changing the prototype of two global
functions.

Apply the same change to fix the compilation breakage.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/arm/kvm/arm.c

index 9ada5549216dc1f5a8e49b3fe34453b043e55026..5a936988eb24d1e62e5ae248ff6e4a3db59667b9 100644 (file)
@@ -232,7 +232,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
                                   struct kvm_memory_slot *memslot,
                                   struct kvm_memory_slot old,
                                   struct kvm_userspace_memory_region *mem,
-                                  int user_alloc)
+                                  bool user_alloc)
 {
        return 0;
 }
@@ -240,7 +240,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
 void kvm_arch_commit_memory_region(struct kvm *kvm,
                                   struct kvm_userspace_memory_region *mem,
                                   struct kvm_memory_slot old,
-                                  int user_alloc)
+                                  bool user_alloc)
 {
 }