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 May 10, 2021

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:   8272c2e41330833ecf16669b97a251b502f21b94
commit: 8272c2e41330833ecf16669b97a251b502f21b94 [3/3] SMSC slask

:::::: branch date: 18 hours ago
:::::: commit date: 18 hours ago
config: h8300-randconfig-c004-20210510 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0

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

cocci 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: Andrew Lunn <[email protected]>
CC: Allen Pais <[email protected]>
CC: Colin Ian King <[email protected]>
CC: Luo Jiaxing <[email protected]>
CC: Wang Hai <[email protected]>
CC: Lee Jones <[email protected]>
CC: netdev(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 8272c2e41330 ("SMSC slask")

---

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

:::::: branch date: 18 hours ago
:::::: commit date: 18 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;