Content-Type: multipart/mixed; boundary="===============1871097521829691911==" MIME-Version: 1.0 From: Jérôme Pouiller To: kbuild-all@lists.01.org Subject: Re: [PATCH] wfx: fix irqf_oneshot.cocci warnings Date: Tue, 16 Mar 2021 08:53:03 +0100 Message-ID: <3096745.nmkoU2l6Xm@pc-42> In-Reply-To: <20210315210920.GA43634@d108da9836c5> List-Id: --===============1871097521829691911== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, On Monday 15 March 2021 22:09:20 CET kernel test robot wrote: > = > From: kernel test robot > = > drivers/net/wireless/silabs/wfx/bus_sdio.c:134:8-33: 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 > = > CC: J=C3=A9r=C3=B4me Pouiller > Reported-by: kernel test robot > Signed-off-by: kernel test robot > --- > = > url: https://github.com/0day-ci/linux/commits/Jerome-Pouiller/wfx-get-= out-from-the-staging-area/20210315-212855 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.gi= t b828324bba8f575fde487a91fec07303789dda8a > = > bus_sdio.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > = > --- a/drivers/net/wireless/silabs/wfx/bus_sdio.c > +++ b/drivers/net/wireless/silabs/wfx/bus_sdio.c > @@ -132,7 +132,8 @@ static int wfx_sdio_irq_subscribe(void * > flags =3D IRQF_TRIGGER_HIGH; > flags |=3D IRQF_ONESHOT; > return devm_request_threaded_irq(&bus->func->dev, bus->of_irq, NU= LL, > - wfx_sdio_irq_handler_ext, flags, > + wfx_sdio_irq_handler_ext, > + flags | IRQF_ONESHOT, > "wfx", bus); > } > = > = Obviously, "flags" always contains IRQF_ONESHOT. So, it is a false positive. -- = J=C3=A9r=C3=B4me Pouiller --===============1871097521829691911==--