summaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-09-03 17:35:35 +0200
committerAvi Kivity <avi@redhat.com>2009-09-10 18:11:11 +0300
commit28bcb112183cb822a394b155a2e7d788fe4a109a (patch)
treea784dcaa858cba4cf2676a65b6149d2980109bc1 /virt/kvm
parent0a79b009525b160081d75cef5dbf45817956acf2 (diff)
downloadop-kernel-dev-28bcb112183cb822a394b155a2e7d788fe4a109a.zip
op-kernel-dev-28bcb112183cb822a394b155a2e7d788fe4a109a.tar.gz
KVM: fix compile warnings on s390
CC arch/s390/kvm/../../../virt/kvm/kvm_main.o arch/s390/kvm/../../../virt/kvm/kvm_main.c: In function '__kvm_set_memory_region': arch/s390/kvm/../../../virt/kvm/kvm_main.c:485: warning: unused variable 'j' arch/s390/kvm/../../../virt/kvm/kvm_main.c:484: warning: unused variable 'lpages' arch/s390/kvm/../../../virt/kvm/kvm_main.c:483: warning: unused variable 'ugfn' Cc: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/kvm_main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 1df4c04..897bff3 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1091,9 +1091,8 @@ int __kvm_set_memory_region(struct kvm *kvm,
{
int r;
gfn_t base_gfn;
- unsigned long npages, ugfn;
- int lpages;
- unsigned long i, j;
+ unsigned long npages;
+ unsigned long i;
struct kvm_memory_slot *memslot;
struct kvm_memory_slot old, new;
@@ -1171,6 +1170,9 @@ int __kvm_set_memory_region(struct kvm *kvm,
goto skip_lpage;
for (i = 0; i < KVM_NR_PAGE_SIZES - 1; ++i) {
+ unsigned long ugfn;
+ unsigned long j;
+ int lpages;
int level = i + 2;
/* Avoid unused variable warning if no large pages */
OpenPOWER on IntegriCloud