Skip to contentSkip to conversation

KVM: ARM: Fix kvm_vm_ioctl_irq_line

PATCH Applied Alexander Graf 3 participants 3 messages Apr 16, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: ARM: Fix kvm_vm_ioctl_irq_line

Commit aa2fbe6d broke the ARM KVM target by introducing a new parameter to irq handling functions.

Fix the function prototype to get things compiling again and ignore the parameter just like we did before

---
 arch/arm/kvm/arm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/kvm/arm.c +2 -1
index e4ad0bb..678596f 100644
@@ -805,7 +805,8 @@ static int vcpu_interrupt_line(struct kvm_vcpu *vcpu, int number, bool level)
 	return 0;
 }
 
-int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level)
+int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level,
+			  bool line_status)
 {
 	u32 irq = irq_level->irq;
 	unsigned int irq_type, vcpu_idx, irq_num;
Signature · 1 line
1.6.0.2
Acked-by on v1 1/1
#1 lore raw
Quoted 26 lines · Alexander Graf

Commit aa2fbe6d broke the ARM KVM target by introducing a new parameter to irq handling functions.

Fix the function prototype to get things compiling again and ignore the parameter just like we did before

---
 arch/arm/kvm/arm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/kvm/arm.c +2 -2
index e4ad0bb..678596f 100644
@@ -805,7 +805,8 @@ static int vcpu_interrupt_line(struct kvm_vcpu *vcpu, int number, bool level)
        return 0;
 }
 
-int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level)
+int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level,
+                         bool line_status)
 {
        u32 irq = irq_level->irq;
        unsigned int irq_type, vcpu_idx, irq_num;
--
Quoted 2 lines

1.6.0.2

#2 lore raw
Quoted 20 lines · Christoffer Dall
Quoted 19 lines · Alexander Graf

Commit aa2fbe6d broke the ARM KVM target by introducing a new parameter to irq handling functions.

Fix the function prototype to get things compiling again and ignore the parameter just like we did before

---
 arch/arm/kvm/arm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/kvm/arm.c +0 -0
index e4ad0bb..678596f 100644
@@ -805,7 +805,8 @@ static int vcpu_interrupt_line(struct kvm_vcpu *vcpu, int number, bool level)
        return 0;
 }
 
Quoted 11 lines
Quoted 9 lines
arch/arm/kvm/arm.c +2 -2
-int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level)
+int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level,
+                         bool line_status)
 {
        u32 irq = irq_level->irq;
        unsigned int irq_type, vcpu_idx, irq_num;
--

1.6.0.2

Applied, thanks.