aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-12-10 12:33:21 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2012-12-13 20:24:38 -0500
commitf82a8cfe9354f5cdea55ebeceba3fd19051d3ee8 (patch)
tree335e968cef697b7831c48849677de628cee4e73d /arch/powerpc
parent0743247fbf0c4a27185b2aa1fdda91d0745dfed1 (diff)
KVM: struct kvm_memory_slot.user_alloc -> bool
There's no need for this to be an int, it holds a boolean. Move to the end of the struct for alignment. Reviewed-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kvm/powerpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 70739a089560..be83fca2e8fd 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -412,7 +412,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
412 struct kvm_memory_slot *memslot, 412 struct kvm_memory_slot *memslot,
413 struct kvm_memory_slot old, 413 struct kvm_memory_slot old,
414 struct kvm_userspace_memory_region *mem, 414 struct kvm_userspace_memory_region *mem,
415 int user_alloc) 415 bool user_alloc)
416{ 416{
417 return kvmppc_core_prepare_memory_region(kvm, memslot, mem); 417 return kvmppc_core_prepare_memory_region(kvm, memslot, mem);
418} 418}
@@ -420,7 +420,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
420void kvm_arch_commit_memory_region(struct kvm *kvm, 420void kvm_arch_commit_memory_region(struct kvm *kvm,
421 struct kvm_userspace_memory_region *mem, 421 struct kvm_userspace_memory_region *mem,
422 struct kvm_memory_slot old, 422 struct kvm_memory_slot old,
423 int user_alloc) 423 bool user_alloc)
424{ 424{
425 kvmppc_core_commit_memory_region(kvm, mem, old); 425 kvmppc_core_commit_memory_region(kvm, mem, old);
426} 426}