Skip to contentSkip to conversation

drivers/net/ethernet/smsc/smc91x.c:2001:10-30: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

PATCH kernel test robot 1 participant 2 messages Jun 29, 2020

Subsystems (2)
lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

CC: kbuild-all(a)lists.01.org
CC: linux-arm-kernel(a)lists.infradead.org
TO: Linus Walleij <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git nomadik-nhk15-smsc
head:   75ac9d5e2268a8506be065fbacd25197135527bb
commit: 75ac9d5e2268a8506be065fbacd25197135527bb [3/3] SMSC slask

:::::: branch date: 15 hours ago
:::::: commit date: 15 hours ago
config: xtensa-randconfig-c004-20200629 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate

coccinelle warnings: (new ones prefixed by >>)

>> drivers/net/ethernet/smsc/smc91x.c:2001:10-30: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

author build bot
#1 lore raw

[PATCH] fix irqf_oneshot.cocci warnings

CC: kbuild-all(a)lists.01.org CC: linux-arm-kernel(a)lists.infradead.org TO: Linus Walleij <[email protected]> CC: Nicolas Pitre <[email protected]> CC: Jakub Kicinski <[email protected]> CC…

CC: kbuild-all(a)lists.01.org
CC: linux-arm-kernel(a)lists.infradead.org
TO: Linus Walleij <[email protected]>
CC: Nicolas Pitre <[email protected]>
CC: Jakub Kicinski <[email protected]>
CC: "Michael S. Tsirkin" <[email protected]>
CC: Shannon Nelson <[email protected]>
CC: Markus Elfring <[email protected]>
CC: Martin Habets <[email protected]>
CC: netdev(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org

From: kernel test robot <[email protected]>

drivers/net/ethernet/smsc/smc91x.c:2001:10-30: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

Since commit 1c6c69525b40 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.

So pass the IRQF_ONESHOT flag in this case.

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

Fixes 75ac9d5e2268 ("SMSC slask")

---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git nomadik-nhk15-smsc
head:   75ac9d5e2268a8506be065fbacd25197135527bb
commit: 75ac9d5e2268a8506be065fbacd25197135527bb [3/3] SMSC slask

:::::: branch date: 15 hours ago
:::::: commit date: 15 hours ago

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

 smc91x.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/smsc/smc91x.c +3 -1
@@ -1998,7 +1998,9 @@ static int smc_probe(struct net_device *
 
 	/* Grab the IRQ */
 	irq_flags |= IRQF_ONESHOT;
-	retval = request_threaded_irq(dev->irq, NULL, smc_interrupt, irq_flags, dev->name, dev);
+	retval = request_threaded_irq(dev->irq, NULL, smc_interrupt,
+				      irq_flags | IRQF_ONESHOT, dev->name,
+				      dev);
       	if (retval)
       		goto err_out;