Skip to content

Commit f5dbdd4

Browse files
committed
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 <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Chris Metcalf <[email protected]>
1 parent 625b86a commit f5dbdd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/tile/kernel/pci_gx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,12 @@ static struct irq_chip tilegx_legacy_irq_chip = {
304304
* to Linux which just calls handle_level_irq() after clearing the
305305
* MAC INTx Assert status bit associated with this interrupt.
306306
*/
307-
static void trio_handle_level_irq(unsigned int irq, struct irq_desc *desc)
307+
static void trio_handle_level_irq(unsigned int __irq, struct irq_desc *desc)
308308
{
309309
struct pci_controller *controller = irq_desc_get_handler_data(desc);
310310
gxio_trio_context_t *trio_context = controller->trio;
311311
uint64_t intx = (uint64_t)irq_desc_get_chip_data(desc);
312+
unsigned int irq = irq_desc_get_irq(desc);
312313
int mac = controller->mac;
313314
unsigned int reg_offset;
314315
uint64_t level_mask;

0 commit comments

Comments
 (0)