mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-18 15:44:02 +08:00
KVM: Fix unused but set warnings
No real bugs in this one. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
376d41ff26
commit
a24e809902
@ -444,6 +444,7 @@ static int FNAME(page_fault)(struct kvm_vcpu *vcpu, gva_t addr,
|
|||||||
kvm_mmu_free_some_pages(vcpu);
|
kvm_mmu_free_some_pages(vcpu);
|
||||||
sptep = FNAME(fetch)(vcpu, addr, &walker, user_fault, write_fault,
|
sptep = FNAME(fetch)(vcpu, addr, &walker, user_fault, write_fault,
|
||||||
level, &write_pt, pfn);
|
level, &write_pt, pfn);
|
||||||
|
(void)sptep;
|
||||||
pgprintk("%s: shadow pte %p %llx ptwrite %d\n", __func__,
|
pgprintk("%s: shadow pte %p %llx ptwrite %d\n", __func__,
|
||||||
sptep, *sptep, write_pt);
|
sptep, *sptep, write_pt);
|
||||||
|
|
||||||
|
@ -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)
|
static void kvm_assigned_dev_interrupt_work_handler(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct kvm_assigned_dev_kernel *assigned_dev;
|
struct kvm_assigned_dev_kernel *assigned_dev;
|
||||||
struct kvm *kvm;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
assigned_dev = container_of(work, struct kvm_assigned_dev_kernel,
|
assigned_dev = container_of(work, struct kvm_assigned_dev_kernel,
|
||||||
interrupt_work);
|
interrupt_work);
|
||||||
kvm = assigned_dev->kvm;
|
|
||||||
|
|
||||||
spin_lock_irq(&assigned_dev->assigned_dev_lock);
|
spin_lock_irq(&assigned_dev->assigned_dev_lock);
|
||||||
if (assigned_dev->irq_requested_type & KVM_DEV_IRQ_HOST_MSIX) {
|
if (assigned_dev->irq_requested_type & KVM_DEV_IRQ_HOST_MSIX) {
|
||||||
|
Loading…
Reference in New Issue
Block a user