Skip to contentSkip to conversation

sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler

PATCH In review Fengguang Wu 2 participants 2 messages Aug 26, 2012 – Aug 27, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 95/95 sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler

Hi Dimitris,

FYI, there are new coccinelle warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-3.7
head:   e3523e01869da20fdd12ffd19ae1df7bf492650e
commit: e3523e01869da20fdd12ffd19ae1df7bf492650e [95/95] ASoC: wm0010: Add initial wm0010 DSP driver

All coccinelle warnings:

+ sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT --
+ sound/soc/codecs/wm0010.c:660:1-7: preceding lock on line 359

vim +850 sound/soc/codecs/wm0010.c
847 trigger = IRQF_TRIGGER_FALLING;
848 trigger |= IRQF_ONESHOT;
849

Quoted 1 line

850 ret = request_threaded_irq(irq, NULL, wm0010_irq, trigger,

851 "wm0010", wm0010);
852 if (ret)
853 dev_err(wm0010->dev, "Failed to request IRQ %d: %d\n",

Please consider folding the attached diff :-)

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation

[PATCH] wm0010: fix coccinelle warnings

/c/kernel-tests/src/linux/sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT

Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

---

Please take the patch only if it's a positive warning. Thanks!

 cocci-output-17570-fcfaec-wm0010.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm0010.c +1 -1
@@ -847,7 +847,7 @@ static int wm0010_probe(struct snd_soc_c
 		trigger = IRQF_TRIGGER_FALLING;
 	trigger |= IRQF_ONESHOT;
 
-	ret = request_threaded_irq(irq, NULL, wm0010_irq, trigger,
+	ret = request_threaded_irq(irq, NULL, wm0010_irq, trigger | IRQF_ONESHOT,
 				   "wm0010", wm0010);
 	if (ret)
 		dev_err(wm0010->dev, "Failed to request IRQ %d: %d\n",
#1 lore raw

Re: [asoc:for-3.7 95/95] sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary han

Quoted 7 lines · Fengguang Wu

Hi Dimitris,

FYI, there are new coccinelle warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-3.7
head:   e3523e01869da20fdd12ffd19ae1df7bf492650e
commit: e3523e01869da20fdd12ffd19ae1df7bf492650e [95/95] ASoC: wm0010: Add initial wm0010 DSP driver

Thanks!