From patchwork Thu Sep 3 15:35:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Carstens X-Patchwork-Id: 45387 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n83FZjn2004473 for ; Thu, 3 Sep 2009 15:35:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755148AbZICPff (ORCPT ); Thu, 3 Sep 2009 11:35:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755455AbZICPfe (ORCPT ); Thu, 3 Sep 2009 11:35:34 -0400 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:47746 "EHLO mtagate2.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754321AbZICPfe (ORCPT ); Thu, 3 Sep 2009 11:35:34 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id n83FZZ7R023322 for ; Thu, 3 Sep 2009 15:35:35 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n83FZZ5g872572 for ; Thu, 3 Sep 2009 16:35:35 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n83FZZAZ027240 for ; Thu, 3 Sep 2009 16:35:35 +0100 Received: from localhost (dyn-9-152-212-33.boeblingen.de.ibm.com [9.152.212.33]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n83FZZxX027237; Thu, 3 Sep 2009 16:35:35 +0100 Date: Thu, 3 Sep 2009 17:35:35 +0200 From: Heiko Carstens To: Avi Kivity , Marcelo Tosatti Cc: Carsten Otte , kvm@vger.kernel.org Subject: [PATCH] kvm: fix compile warnings on s390 Message-ID: <20090903153535.GA20994@osiris.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Heiko Carstens 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 Signed-off-by: Heiko Carstens --- Patch applies on top of linux-next. virt/kvm/kvm_main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-next/virt/kvm/kvm_main.c =================================================================== --- linux-next.orig/virt/kvm/kvm_main.c +++ linux-next/virt/kvm/kvm_main.c @@ -480,9 +480,8 @@ int __kvm_set_memory_region(struct 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; @@ -560,6 +559,9 @@ int __kvm_set_memory_region(struct 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 */