* [PATCH v3] genirq: Fix parameter type in declaration and definition
@ 2025-03-13 8:18 ye.xingchen
2025-03-13 11:31 ` Thomas Gleixner
0 siblings, 1 reply; 3+ messages in thread
From: ye.xingchen @ 2025-03-13 8:18 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel
From: YeXingchen <ye.xingchen@zte.com.cn>
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@zte.com.cn>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] genirq: Fix parameter type in declaration and definition
2025-03-13 8:18 [PATCH v3] genirq: Fix parameter type in declaration and definition ye.xingchen
@ 2025-03-13 11:31 ` Thomas Gleixner
2025-03-17 13:30 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2025-03-13 11:31 UTC (permalink / raw)
To: ye.xingchen; +Cc: linux-kernel
On Thu, Mar 13 2025 at 16:18, ye xingchen wrote:
$Subject: ... Fix ...
There is nothing to fix here. It's correct code.
> This patch aligns the parameter name in the definition with the
See other reply.
> --- 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)
Now the kernel doc of that function is inconsistent.
You are not making anything more consistent, you are actively making it
worse. Please stop sending half thought out patches every half an hour.
Thanks,
tglx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] genirq: Fix parameter type in declaration and definition
2025-03-13 11:31 ` Thomas Gleixner
@ 2025-03-17 13:30 ` Krzysztof Kozlowski
0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-17 13:30 UTC (permalink / raw)
To: Thomas Gleixner, ye.xingchen; +Cc: linux-kernel
On 13/03/2025 12:31, Thomas Gleixner wrote:
> On Thu, Mar 13 2025 at 16:18, ye xingchen wrote:
>
> $Subject: ... Fix ...
>
> There is nothing to fix here. It's correct code.
>
>> This patch aligns the parameter name in the definition with the
>
> See other reply.
Just FYI, as you noticed earlier version of this patch was not even
compiled and it is a pattern for ye.xingchen@zte.com.cn:
https://lore.kernel.org/all/20250313160959132rMOoPpNjSNTlB-E6rMOuj@zte.com.cn/
I would not trust any future version here.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-17 13:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-13 8:18 [PATCH v3] genirq: Fix parameter type in declaration and definition ye.xingchen
2025-03-13 11:31 ` Thomas Gleixner
2025-03-17 13:30 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox