]> xenbits.xensource.com Git - xen.git/commitdiff
xen/irq: Address MISRA Rule 8.3 violation
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jun 2024 12:48:35 +0000 (13:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 19 Jun 2024 12:00:06 +0000 (13:00 +0100)
When centralising irq_ack_none(), different architectures had different names
for the parameter.  As it's type is struct irq_desc *, it should be named
desc.  Make this consistent.

No functional change.

Fixes: 8aeda4a241ab ("arch/irq: Make irq_ack_none() mandatory")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/arch/arm/irq.c
xen/include/xen/irq.h

index c60502444ccfa00152fe21dce910f48e7442227b..6b89f64fd1947e600eacbb04598ed29374dd21d2 100644 (file)
@@ -31,9 +31,9 @@ struct irq_guest
     unsigned int virq;
 };
 
-void irq_ack_none(struct irq_desc *irq)
+void irq_ack_none(struct irq_desc *desc)
 {
-    printk("unexpected IRQ trap at irq %02x\n", irq->irq);
+    printk("unexpected IRQ trap at irq %02x\n", desc->irq);
 }
 
 void irq_end_none(struct irq_desc *irq)
index adf33547d25f44a6c789e92d0c452ff910a892c3..580ae37e742855b74e297bf06e2a8ef9e4398d07 100644 (file)
@@ -134,7 +134,7 @@ void cf_check irq_actor_none(struct irq_desc *desc);
  * irq_ack_none() must be provided by the architecture.
  * irq_end_none() is optional, and opted into using a define.
  */
-void cf_check irq_ack_none(struct irq_desc *irq);
+void cf_check irq_ack_none(struct irq_desc *desc);
 
 /*
  * Per-cpu interrupted context register state - the inner-most interrupt frame