Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/xive: remove unused parameter

The parameter xc to xive_cleanup_single_escalation() is unused, so we
can remove it.

Signed-off-by: Deming Wang <wangdeming@inspur.com>
[mpe: Reword change log, unwrap lines < 90 columns]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220413105507.1729-1-wangdeming@inspur.com

authored by

Deming Wang and committed by
Michael Ellerman
932c6dea 4562bffb

+4 -8
+2 -4
arch/powerpc/kvm/book3s_xive.c
··· 1785 1785 * stale_p (because it has no easy way to address it). Hence we have 1786 1786 * to adjust stale_p before shutting down the interrupt. 1787 1787 */ 1788 - void xive_cleanup_single_escalation(struct kvm_vcpu *vcpu, 1789 - struct kvmppc_xive_vcpu *xc, int irq) 1788 + void xive_cleanup_single_escalation(struct kvm_vcpu *vcpu, int irq) 1790 1789 { 1791 1790 struct irq_data *d = irq_get_irq_data(irq); 1792 1791 struct xive_irq_data *xd = irq_data_get_irq_handler_data(d); ··· 1826 1827 for (i = 0; i < KVMPPC_XIVE_Q_COUNT; i++) { 1827 1828 if (xc->esc_virq[i]) { 1828 1829 if (kvmppc_xive_has_single_escalation(xc->xive)) 1829 - xive_cleanup_single_escalation(vcpu, xc, 1830 - xc->esc_virq[i]); 1830 + xive_cleanup_single_escalation(vcpu, xc->esc_virq[i]); 1831 1831 free_irq(xc->esc_virq[i], vcpu); 1832 1832 irq_dispose_mapping(xc->esc_virq[i]); 1833 1833 kfree(xc->esc_virq_names[i]);
+1 -2
arch/powerpc/kvm/book3s_xive.h
··· 299 299 int kvmppc_xive_attach_escalation(struct kvm_vcpu *vcpu, u8 prio, 300 300 bool single_escalation); 301 301 struct kvmppc_xive *kvmppc_xive_get_device(struct kvm *kvm, u32 type); 302 - void xive_cleanup_single_escalation(struct kvm_vcpu *vcpu, 303 - struct kvmppc_xive_vcpu *xc, int irq); 302 + void xive_cleanup_single_escalation(struct kvm_vcpu *vcpu, int irq); 304 303 int kvmppc_xive_compute_vp_id(struct kvmppc_xive *xive, u32 cpu, u32 *vp); 305 304 int kvmppc_xive_set_nr_servers(struct kvmppc_xive *xive, u64 addr); 306 305 bool kvmppc_xive_check_save_restore(struct kvm_vcpu *vcpu);
+1 -2
arch/powerpc/kvm/book3s_xive_native.c
··· 93 93 /* Free the escalation irq */ 94 94 if (xc->esc_virq[i]) { 95 95 if (kvmppc_xive_has_single_escalation(xc->xive)) 96 - xive_cleanup_single_escalation(vcpu, xc, 97 - xc->esc_virq[i]); 96 + xive_cleanup_single_escalation(vcpu, xc->esc_virq[i]); 98 97 free_irq(xc->esc_virq[i], vcpu); 99 98 irq_dispose_mapping(xc->esc_virq[i]); 100 99 kfree(xc->esc_virq_names[i]);