public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: fix build warning within __kvm_set_memory_region() on s390
@ 2011-01-17 20:21 Heiko Carstens
  2011-01-20 16:10 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Heiko Carstens @ 2011-01-17 20:21 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti; +Cc: kvm, Carsten Otte

From: Heiko Carstens <heiko.carstens@de.ibm.com>

Get rid of this warning:

  CC      arch/s390/kvm/../../../virt/kvm/kvm_main.o
arch/s390/kvm/../../../virt/kvm/kvm_main.c:596:12: warning: 'kvm_create_dirty_bitmap' defined but not used

The only caller of the function is within a !CONFIG_S390 section, so add the
same ifdef around kvm_create_dirty_bitmap() as well.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---

 virt/kvm/kvm_main.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index f29abeb..a762720 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -588,6 +588,7 @@ static int kvm_vm_release(struct inode *inode, struct file *filp)
 	return 0;
 }
 
+#ifndef CONFIG_S390
 /*
  * Allocation size is twice as large as the actual dirty bitmap size.
  * This makes it possible to do double buffering: see x86's
@@ -608,6 +609,7 @@ static int kvm_create_dirty_bitmap(struct kvm_memory_slot *memslot)
 	memslot->dirty_bitmap_head = memslot->dirty_bitmap;
 	return 0;
 }
+#endif /* !CONFIG_S390 */
 
 /*
  * Allocate some memory and give it an address in the guest physical address

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: fix build warning within __kvm_set_memory_region() on s390
  2011-01-17 20:21 [PATCH] KVM: fix build warning within __kvm_set_memory_region() on s390 Heiko Carstens
@ 2011-01-20 16:10 ` Marcelo Tosatti
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2011-01-20 16:10 UTC (permalink / raw)
  To: Heiko Carstens; +Cc: Avi Kivity, kvm, Carsten Otte

On Mon, Jan 17, 2011 at 09:21:08PM +0100, Heiko Carstens wrote:
> From: Heiko Carstens <heiko.carstens@de.ibm.com>
> 
> Get rid of this warning:
> 
>   CC      arch/s390/kvm/../../../virt/kvm/kvm_main.o
> arch/s390/kvm/../../../virt/kvm/kvm_main.c:596:12: warning: 'kvm_create_dirty_bitmap' defined but not used
> 
> The only caller of the function is within a !CONFIG_S390 section, so add the
> same ifdef around kvm_create_dirty_bitmap() as well.
> 
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

Applied, thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-20 22:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 20:21 [PATCH] KVM: fix build warning within __kvm_set_memory_region() on s390 Heiko Carstens
2011-01-20 16:10 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox