KVM: Fix unused but set warnings
authorAndi Kleen <andi@firstfloor.org>
Thu, 10 Jun 2010 11:10:55 +0000 (13:10 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:46:29 +0000 (10:46 +0300)
No real bugs in this one.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h
virt/kvm/assigned-dev.c

index 1f7f5dd8306f9a9480d6b10873a2d9d7f23f2ac1..9308be2d5c020b4d219a6ed9217d6699bbc8316e 100644 (file)
@@ -444,6 +444,7 @@ static int FNAME(page_fault)(struct kvm_vcpu *vcpu, gva_t addr,
        kvm_mmu_free_some_pages(vcpu);
        sptep = FNAME(fetch)(vcpu, addr, &walker, user_fault, write_fault,
                             level, &write_pt, pfn);
+       (void)sptep;
        pgprintk("%s: shadow pte %p %llx ptwrite %d\n", __func__,
                 sptep, *sptep, write_pt);
 
index bf9d958d4d5b6fe328226a788db2c85999cab20b..7c98928b09d92a9b7930bb84c9f291bfe569870d 100644 (file)
@@ -58,12 +58,10 @@ static int find_index_from_host_irq(struct kvm_assigned_dev_kernel
 static void kvm_assigned_dev_interrupt_work_handler(struct work_struct *work)
 {
        struct kvm_assigned_dev_kernel *assigned_dev;
-       struct kvm *kvm;
        int i;
 
        assigned_dev = container_of(work, struct kvm_assigned_dev_kernel,
                                    interrupt_work);
-       kvm = assigned_dev->kvm;
 
        spin_lock_irq(&assigned_dev->assigned_dev_lock);
        if (assigned_dev->irq_requested_type & KVM_DEV_IRQ_HOST_MSIX) {