[PATCH v3] genirq: Fix parameter type in declaration and definition
From: ye.xingchen
Date: Thu Mar 13 2025 - 04:18:17 EST
From: YeXingchen <ye.xingchen@xxxxxxxxxx>
The declaration of irq_set_irqchip_state in the header file uses
bool state as the parameter type, while the definition uses bool val.
This patch aligns the parameter name in the definition with the
declaration,changing val to state to ensure consistency.
Signed-off-by: YeXingchen <ye.xingchen@xxxxxxxxxx>
---
v1->v3
fix the patch and patameter
kernel/irq/manage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index f300bb6be3bd..3008f14f4db2 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -2860,7 +2860,7 @@ EXPORT_SYMBOL_GPL(irq_get_irqchip_state);
* interrupt controller has per-cpu registers.
*/
int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
- bool val)
+ bool state)
{
struct irq_desc *desc;
struct irq_data *data;
@@ -2890,7 +2890,7 @@ int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
} while (data);
if (data)
- err = chip->irq_set_irqchip_state(data, which, val);
+ err = chip->irq_set_irqchip_state(data, which, state);
out_unlock:
irq_put_desc_busunlock(desc, flags);
--
2.25.1