All of lore.kernel.org
 help / color / mirror / Atom feed
* [lst:imx8m-power-domains-testing 44/58] drivers/gpu/drm/bridge/samsung-dsim.c:1637:10-17: WARNING: ERR_CAST can be used with dsi -> clks [ i ]
@ 2021-07-19 21:11 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-07-19 21:11 UTC (permalink / raw)
  To: Michael Tretter; +Cc: kbuild-all, linux-kernel, Lucas Stach

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

tree:   https://git.pengutronix.de/git/lst/linux imx8m-power-domains-testing
head:   743ce97bc237b4b97ffa933cd03f5a6c8b401384
commit: 0ce8e59076392e581e9b82892a973b17d55f136b [44/58] drm/exynos: move bridge driver to bridges
config: i386-randconfig-c021-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

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


cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/bridge/samsung-dsim.c:1637:10-17: WARNING: ERR_CAST can be used with dsi -> clks [ i ]
>> drivers/gpu/drm/bridge/samsung-dsim.c:1651:9-16: WARNING: ERR_CAST can be used with dsi -> phy

Please review and possibly fold the followup patch.

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

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

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

* [lst:imx8m-power-domains-testing 44/58] drivers/gpu/drm/bridge/samsung-dsim.c:1637:10-17: WARNING: ERR_CAST can be used with dsi -> clks [ i ]
@ 2021-07-19 21:11 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-07-19 21:11 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.pengutronix.de/git/lst/linux imx8m-power-domains-testing
head:   743ce97bc237b4b97ffa933cd03f5a6c8b401384
commit: 0ce8e59076392e581e9b82892a973b17d55f136b [44/58] drm/exynos: move bridge driver to bridges
config: i386-randconfig-c021-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

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


cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/bridge/samsung-dsim.c:1637:10-17: WARNING: ERR_CAST can be used with dsi -> clks [ i ]
>> drivers/gpu/drm/bridge/samsung-dsim.c:1651:9-16: WARNING: ERR_CAST can be used with dsi -> phy

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: 46001 bytes --]

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

* [PATCH] drm/exynos: fix err_cast.cocci warnings
  2021-07-19 21:11 ` kernel test robot
@ 2021-07-19 21:11   ` kernel test robot
  -1 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-07-19 21:11 UTC (permalink / raw)
  To: Michael Tretter; +Cc: kbuild-all, linux-kernel, Lucas Stach

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

drivers/gpu/drm/bridge/samsung-dsim.c:1637:10-17: WARNING: ERR_CAST can be used with dsi -> clks [ i ]
drivers/gpu/drm/bridge/samsung-dsim.c:1651:9-16: WARNING: ERR_CAST can be used with dsi -> phy


 Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

Generated by: scripts/coccinelle/api/err_cast.cocci

CC: Michael Tretter <m.tretter@pengutronix.de>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://git.pengutronix.de/git/lst/linux imx8m-power-domains-testing
head:   743ce97bc237b4b97ffa933cd03f5a6c8b401384
commit: 0ce8e59076392e581e9b82892a973b17d55f136b [44/58] drm/exynos: move bridge driver to bridges
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago

 samsung-dsim.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/gpu/drm/bridge/samsung-dsim.c
+++ b/drivers/gpu/drm/bridge/samsung-dsim.c
@@ -1634,7 +1634,7 @@ static struct samsung_dsim *__samsung_ds
 
 			dev_info(dev, "failed to get the clock: %s\n",
 					clk_names[i]);
-			return ERR_PTR(PTR_ERR(dsi->clks[i]));
+			return ERR_CAST(dsi->clks[i]);
 		}
 	}
 
@@ -1648,7 +1648,7 @@ static struct samsung_dsim *__samsung_ds
 	dsi->phy = devm_phy_get(dev, "dsim");
 	if (IS_ERR(dsi->phy)) {
 		dev_info(dev, "failed to get dsim phy\n");
-		return ERR_PTR(PTR_ERR(dsi->phy));
+		return ERR_CAST(dsi->phy);
 	}
 
 	dsi->irq = platform_get_irq(pdev, 0);

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

* [PATCH] drm/exynos: fix err_cast.cocci warnings
@ 2021-07-19 21:11   ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-07-19 21:11 UTC (permalink / raw)
  To: kbuild-all

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

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

drivers/gpu/drm/bridge/samsung-dsim.c:1637:10-17: WARNING: ERR_CAST can be used with dsi -> clks [ i ]
drivers/gpu/drm/bridge/samsung-dsim.c:1651:9-16: WARNING: ERR_CAST can be used with dsi -> phy


 Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

Generated by: scripts/coccinelle/api/err_cast.cocci

CC: Michael Tretter <m.tretter@pengutronix.de>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://git.pengutronix.de/git/lst/linux imx8m-power-domains-testing
head:   743ce97bc237b4b97ffa933cd03f5a6c8b401384
commit: 0ce8e59076392e581e9b82892a973b17d55f136b [44/58] drm/exynos: move bridge driver to bridges
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago

 samsung-dsim.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/gpu/drm/bridge/samsung-dsim.c
+++ b/drivers/gpu/drm/bridge/samsung-dsim.c
@@ -1634,7 +1634,7 @@ static struct samsung_dsim *__samsung_ds
 
 			dev_info(dev, "failed to get the clock: %s\n",
 					clk_names[i]);
-			return ERR_PTR(PTR_ERR(dsi->clks[i]));
+			return ERR_CAST(dsi->clks[i]);
 		}
 	}
 
@@ -1648,7 +1648,7 @@ static struct samsung_dsim *__samsung_ds
 	dsi->phy = devm_phy_get(dev, "dsim");
 	if (IS_ERR(dsi->phy)) {
 		dev_info(dev, "failed to get dsim phy\n");
-		return ERR_PTR(PTR_ERR(dsi->phy));
+		return ERR_CAST(dsi->phy);
 	}
 
 	dsi->irq = platform_get_irq(pdev, 0);

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

end of thread, other threads:[~2021-07-19 22:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19 21:11 [lst:imx8m-power-domains-testing 44/58] drivers/gpu/drm/bridge/samsung-dsim.c:1637:10-17: WARNING: ERR_CAST can be used with dsi -> clks [ i ] kernel test robot
2021-07-19 21:11 ` kernel test robot
2021-07-19 21:11 ` [PATCH] drm/exynos: fix err_cast.cocci warnings kernel test robot
2021-07-19 21:11   ` 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.