From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6684936819155156496==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] scripts/dtc: fix irqf_oneshot.cocci warnings Date: Fri, 21 May 2021 02:27:25 +0800 Message-ID: <20210520182725.GA59192@ad678c5af442> In-Reply-To: <202105210256.1Q2XDf1M-lkp@intel.com> List-Id: --===============6684936819155156496== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/power/wm831x_power.c:569:7-27: ERROR: Threaded IRQ with no primary = handler requested without IRQF_ONESHOT drivers/power/wm831x_power.c:579:7-27: ERROR: Threaded IRQ with no primary = handler requested without IRQF_ONESHOT drivers/power/wm831x_power.c:592:8-28: 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 Fixes: 8214bf079208 ("scripts/dtc: Export YYLOC global declaration") Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://android.googlesource.com/kernel/goldfish android-3.18 head: dd54b61f1458c03f68fc019b4874d98f2f0ae3a5 commit: 8214bf079208b146e63cd0a3ce0ed335a87ce7b3 [396/1051] scripts/dtc: Ex= port YYLOC global declaration :::::: branch date: 5 weeks ago :::::: commit date: 3 months ago Please take the patch only if it's a positive warning. Thanks! wm831x_power.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/drivers/power/wm831x_power.c +++ b/drivers/power/wm831x_power.c @@ -567,7 +567,8 @@ static int wm831x_power_probe(struct pla = irq =3D wm831x_irq(wm831x, platform_get_irq_byname(pdev, "SYSLO")); ret =3D request_threaded_irq(irq, NULL, wm831x_syslo_irq, - IRQF_TRIGGER_RISING, "System power low", + IRQF_TRIGGER_RISING | IRQF_ONESHOT, + "System power low", power); if (ret !=3D 0) { dev_err(&pdev->dev, "Failed to request SYSLO IRQ %d: %d\n", @@ -577,7 +578,8 @@ static int wm831x_power_probe(struct pla = irq =3D wm831x_irq(wm831x, platform_get_irq_byname(pdev, "PWR SRC")); ret =3D request_threaded_irq(irq, NULL, wm831x_pwr_src_irq, - IRQF_TRIGGER_RISING, "Power source", + IRQF_TRIGGER_RISING | IRQF_ONESHOT, + "Power source", power); if (ret !=3D 0) { dev_err(&pdev->dev, "Failed to request PWR SRC IRQ %d: %d\n", @@ -590,7 +592,7 @@ static int wm831x_power_probe(struct pla platform_get_irq_byname(pdev, wm831x_bat_irqs[i])); ret =3D request_threaded_irq(irq, NULL, wm831x_bat_irq, - IRQF_TRIGGER_RISING, + IRQF_TRIGGER_RISING | IRQF_ONESHOT, wm831x_bat_irqs[i], power); if (ret !=3D 0) { --===============6684936819155156496==--