genirq: Separate warning messages of enable of suspended irq
PATCH v2 1/1 genirq: Separate warning messages of enable of suspended irq
Both unbalanced enable for irq and enable of suspended irq
print same warning messages, such as:
......
[20220314100142]------------[ cut here ]------------
[20220314100142]WARNING: CPU: 1 PID: 10332 at kernel/irq/manage.c:723 __enable_irq+0x58/0xa4 [20220314100142]Unbalanced enable for IRQ 38
......
It's confusing. Separate the warning messages to make it clear. No functional changes.
--- kernel/irq/manage.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
kernel/irq/manage.c +5 -3
@@ -775,17 +775,19 @@ void disable_nmi_nosync(unsigned int irq)void __enable_irq (struct irq_desc *desc) {switch (desc->depth) {case 0 : - err_out:WARN (1 ,KERN_WARNING "Unbalanced enable for IRQ %d\n" ,irq_desc_get_irq (desc));break ;case 1 : { -if (desc->istate &IRQS_SUSPENDED ) - goto err_out; +if (desc->istate &IRQS_SUSPENDED ) { +WARN (1 ,KERN_WARNING "Enable of suspended IRQ %d\n" , +irq_desc_get_irq (desc)); +break ; + }/* Prevent probing on this irq: */ irq_settings_set_noprobe (desc);/* * Call irq_startup() not irq_enable() here because the * interrupt might be marked NOAUTOEN. So irq_startup()
Signature · 1 line
2.37.0
Quoted 34 lines · Chen Lifu
Both unbalanced enable for irq and enable of suspended irq
print same warning messages, such as:
......
[20220314100142]------------[ cut here ]------------
[20220314100142]WARNING: CPU: 1 PID: 10332 atkernel/irq/manage.c:723__enable_irq+0x58/0xa4[20220314100142]Unbalanced enable for IRQ 38
......It's confusing. Separate the warning messages to make it clear. No functional changes.
Signed-off-by Chen Lifu <[email protected]>--- kernel/irq/manage.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)kernel/irq/manage.c +0
-3@@ -775,17 +775,19 @@ void disable_nmi_nosync(unsigned int irq)void __enable_irq (struct irq_desc *desc) {switch (desc->depth) {case 0 : - err_out:WARN (1 ,KERN_WARNING "Unbalanced enable for IRQ %d\n" ,irq_desc_get_irq (desc));break ;case 1 : { -if (desc->istate &IRQS_SUSPENDED ) - goto err_out;
kernel/irq/manage.c void disable_nmi_nosync(unsigned int irq) · line 793
Quoted 10 lines
kernel/irq/manage.c +5
-0+if (desc->istate &IRQS_SUSPENDED ) { +WARN (1 ,KERN_WARNING "Enable of suspended IRQ %d\n" , +irq_desc_get_irq (desc)); +break ; + }/* Prevent probing on this irq: */ irq_settings_set_noprobe (desc);/* * Call irq_startup() not irq_enable() here because the * interrupt might be marked NOAUTOEN. So irq_startup()
Friendly ping ...
Quoted 47 lines · chenlifu
Quoted 34 lines · Chen Lifu
Both unbalanced enable for irq and enable of suspended irq
print same warning messages, such as:
......
[20220314100142]------------[ cut here ]------------
[20220314100142]WARNING: CPU: 1 PID: 10332 atkernel/irq/manage.c:723__enable_irq+0x58/0xa4[20220314100142]Unbalanced enable for IRQ 38
......It's confusing. Separate the warning messages to make it clear. No functional changes.
Signed-off-by Chen Lifu <[email protected]>---
kernel/irq/manage.c| 8 +++++---1 file changed, 5 insertions(+), 3 deletions(-)kernel/irq/manage.c +0
-0@@ -775,17 +775,19 @@ void disable_nmi_nosync(unsigned int irq) void __enable_irq(struct irq_desc *desc) { switch (desc->depth) {case 0:
-err_out:
WARN(1, KERN_WARNING "Unbalanced enable for IRQ %d\n", irq_desc_get_irq(desc));
break;
case 1: {
- if (desc->istate&IRQS_SUSPENDED)
- gotoerr_out;
+ if (desc->istate&IRQS_SUSPENDED) {
+ WARN(1,KERN_WARNING"Enable of suspended IRQ %d\n",Quoted 9 lines
+
irq_desc_get_irq(desc));
+ break;
+ }
/* Prevent probing on this irq: */irq_settings_set_noprobe(desc);
/*
* Callirq_startup()notirq_enable()here because the
* interrupt might be marked NOAUTOEN. Soirq_startup()Friendly ping ...
Quoted 1 line
.
Friendly ping ...