From: kernel test robot <lkp@intel.com>
To: Michael Tretter <m.tretter@pengutronix.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Lucas Stach <l.stach@pengutronix.de>
Subject: [PATCH] drm/exynos: fix err_cast.cocci warnings
Date: Tue, 20 Jul 2021 05:11:33 +0800 [thread overview]
Message-ID: <20210719211133.GA1443@564cc3e57b3e> (raw)
In-Reply-To: <202107200518.l6jmQc04-lkp@intel.com>
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);
prev parent reply other threads:[~2021-07-19 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210719211133.GA1443@564cc3e57b3e \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=l.stach@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=m.tretter@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®