All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/i2c/busses/i2c-img-scb.c:1348:2-9: line 1348 is redundant because platform_get_irq() already prints an error
@ 2020-06-05 14:19 kernel test robot
  2020-06-05 14:19 ` [PATCH] coccinelle: platform_get_irq: fix platform_get_irq.cocci warnings kernel test robot
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-06-05 14:19 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <yuehaibing@huawei.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Stephen Boyd <swboyd@chromium.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   435faf5c218a47fd6258187f62d9bb1009717896
commit: ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c coccinelle: platform_get_irq: Fix parse error
date:   9 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 9 months ago
config: mips-randconfig-c022-20200605 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


coccinelle warnings: (new ones prefixed by >>)

>> drivers/i2c/busses/i2c-img-scb.c:1348:2-9: line 1348 is redundant because platform_get_irq() already prints an error

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27091 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] coccinelle: platform_get_irq: fix platform_get_irq.cocci warnings
  2020-06-05 14:19 drivers/i2c/busses/i2c-img-scb.c:1348:2-9: line 1348 is redundant because platform_get_irq() already prints an error kernel test robot
@ 2020-06-05 14:19 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-06-05 14:19 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <yuehaibing@huawei.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Stephen Boyd <swboyd@chromium.org>
CC: Kate Stewart <kstewart@linuxfoundation.org>
CC: Allison Randal <allison@lohutok.net>
CC: Enrico Weigelt <info@metux.net>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: linux-i2c(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org

From: kernel test robot <lkp@intel.com>

drivers/i2c/busses/i2c-img-scb.c:1348:2-9: line 1348 is redundant because platform_get_irq() already prints an error

 Remove dev_err() messages after platform_get_irq*() failures
Generated by: scripts/coccinelle/api/platform_get_irq.cocci

Fixes: ca7ce5a2710a ("coccinelle: platform_get_irq: Fix parse error")
CC: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   435faf5c218a47fd6258187f62d9bb1009717896
commit: ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c coccinelle: platform_get_irq: Fix parse error
:::::: branch date: 11 hours ago
:::::: commit date: 9 months ago

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

 i2c-img-scb.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/i2c/busses/i2c-img-scb.c
+++ b/drivers/i2c/busses/i2c-img-scb.c
@@ -1345,7 +1345,6 @@ static int img_i2c_probe(struct platform
 
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
-		dev_err(&pdev->dev, "can't get irq number\n");
 		return irq;
 	}
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] coccinelle: platform_get_irq: fix platform_get_irq.cocci warnings
  2020-08-03 21:07 drivers/mailbox/platform_mhu.c:141:3-10: line 141 is redundant because platform_get_irq() already prints an error kernel test robot
@ 2020-08-03 21:07 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-08-03 21:07 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <yuehaibing@huawei.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Stephen Boyd <swboyd@chromium.org>
CC: Jassi Brar <jassisinghbrar@gmail.com>
CC: linux-kernel(a)vger.kernel.org

From: kernel test robot <lkp@intel.com>

drivers/mailbox/platform_mhu.c:141:3-10: line 141 is redundant because platform_get_irq() already prints an error

 Remove dev_err() messages after platform_get_irq*() failures
Generated by: scripts/coccinelle/api/platform_get_irq.cocci

Fixes: ca7ce5a2710a ("coccinelle: platform_get_irq: Fix parse error")
CC: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3208167a865e862fff5045d7910387941ff7e114
commit: ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c coccinelle: platform_get_irq: Fix parse error
:::::: branch date: 3 hours ago
:::::: commit date: 11 months ago

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

 platform_mhu.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/mailbox/platform_mhu.c
+++ b/drivers/mailbox/platform_mhu.c
@@ -138,7 +138,6 @@ static int platform_mhu_probe(struct pla
 		mhu->chan[i].con_priv = &mhu->mlink[i];
 		mhu->mlink[i].irq = platform_get_irq(pdev, i);
 		if (mhu->mlink[i].irq < 0) {
-			dev_err(dev, "failed to get irq%d\n", i);
 			return mhu->mlink[i].irq;
 		}
 		mhu->mlink[i].rx_reg = mhu->base + platform_mhu_reg[i];

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-03 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-05 14:19 drivers/i2c/busses/i2c-img-scb.c:1348:2-9: line 1348 is redundant because platform_get_irq() already prints an error kernel test robot
2020-06-05 14:19 ` [PATCH] coccinelle: platform_get_irq: fix platform_get_irq.cocci warnings kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-08-03 21:07 drivers/mailbox/platform_mhu.c:141:3-10: line 141 is redundant because platform_get_irq() already prints an error kernel test robot
2020-08-03 21:07 ` [PATCH] coccinelle: platform_get_irq: fix platform_get_irq.cocci warnings kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.