Browse Source

tile/pci_gx: Prepare trio_handle_level_irq for irq argument removal

The irq argument of most interrupt flow handlers is unused or merily
used instead of a local variable. The handlers which need the irq
argument can retrieve the irq number from the irq descriptor.

Search and update was done with coccinelle and the invaluable help of
Julia Lawall.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Thomas Gleixner 10 years ago
parent
commit
f5dbdd429f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      arch/tile/kernel/pci_gx.c

+ 2 - 1
arch/tile/kernel/pci_gx.c

@@ -304,11 +304,12 @@ static struct irq_chip tilegx_legacy_irq_chip = {
  * to Linux which just calls handle_level_irq() after clearing the
  * to Linux which just calls handle_level_irq() after clearing the
  * MAC INTx Assert status bit associated with this interrupt.
  * MAC INTx Assert status bit associated with this interrupt.
  */
  */
-static void trio_handle_level_irq(unsigned int irq, struct irq_desc *desc)
+static void trio_handle_level_irq(unsigned int __irq, struct irq_desc *desc)
 {
 {
 	struct pci_controller *controller = irq_desc_get_handler_data(desc);
 	struct pci_controller *controller = irq_desc_get_handler_data(desc);
 	gxio_trio_context_t *trio_context = controller->trio;
 	gxio_trio_context_t *trio_context = controller->trio;
 	uint64_t intx = (uint64_t)irq_desc_get_chip_data(desc);
 	uint64_t intx = (uint64_t)irq_desc_get_chip_data(desc);
+	unsigned int irq = irq_desc_get_irq(desc);
 	int mac = controller->mac;
 	int mac = controller->mac;
 	unsigned int reg_offset;
 	unsigned int reg_offset;
 	uint64_t level_mask;
 	uint64_t level_mask;