Skip to contentSkip to conversation

genirq: Add missing IRQF_ONESHOT

PATCH In review Yang Li 2 participants 2 messages Mar 23, 2021 – Mar 25, 2021 IRQ

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 genirq: Add missing IRQF_ONESHOT

fixed the following coccicheck:
./kernel/irq/manage.c:2193:8-28: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

---
 kernel/irq/manage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/irq/manage.c +1 -1
index 21ea370..a309fd3 100644
@@ -2191,7 +2191,7 @@ int request_any_context_irq(unsigned int irq, irq_handler_t handler,
 
 	if (irq_settings_is_nested_thread(desc)) {
 		ret = request_threaded_irq(irq, NULL, handler,
-					   flags, name, dev_id);
+					   flags | IRQF_ONESHOT, name, dev_id);
 		return !ret ? IRQC_IS_NESTED : ret;
 	}
 
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 3 lines · Yang Li

fixed the following coccicheck:
./kernel/irq/manage.c:2193:8-28: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

This fixes nothing because it's for a nested thread and not relevant to that check at all.

Thanks,

tglx