From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [kbingham-rcar:kbingham/vsp/v3u-5.16 17/33] drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c:641:6: warning: Unused variable: ret [unusedVariable]
Date: Mon, 06 Dec 2021 01:48:23 +0800 [thread overview]
Message-ID: <202112060148.ktFMJBbZ-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3812 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git kbingham/vsp/v3u-5.16
head: 3f9acc04945582172a99910f5a264347f6ddb0a9
commit: adffb421fe4941afa0e9af6eaa5564e2166a4ba5 [17/33] drm: rcar-du: mipi-dsi: Use devm_drm_of_get_bridge helper
:::::: branch date: 5 days ago
:::::: commit date: 5 days ago
compiler: arc-elf-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c:641:6: warning: Unused variable: ret [unusedVariable]
int ret;
^
vim +641 drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c
e7d888bbc365be LUU HOAI 2020-02-25 626
e7d888bbc365be LUU HOAI 2020-02-25 627 /* -----------------------------------------------------------------------------
e7d888bbc365be LUU HOAI 2020-02-25 628 * Clock Setting
e7d888bbc365be LUU HOAI 2020-02-25 629 */
e7d888bbc365be LUU HOAI 2020-02-25 630
e7d888bbc365be LUU HOAI 2020-02-25 631
e7d888bbc365be LUU HOAI 2020-02-25 632 /* -----------------------------------------------------------------------------
e7d888bbc365be LUU HOAI 2020-02-25 633 * Host setting
e7d888bbc365be LUU HOAI 2020-02-25 634 */
e7d888bbc365be LUU HOAI 2020-02-25 635
e7d888bbc365be LUU HOAI 2020-02-25 636 static int rcar_mipi_dsi_host_attach(struct mipi_dsi_host *host,
e7d888bbc365be LUU HOAI 2020-02-25 637 struct mipi_dsi_device *device)
e7d888bbc365be LUU HOAI 2020-02-25 638 {
e7d888bbc365be LUU HOAI 2020-02-25 639 struct rcar_mipi_dsi *dsi = host_to_rcar_mipi_dsi(host);
adffb421fe4941 Kieran Bingham 2021-11-30 640 struct device *dev = dsi->dev;
e1579d24bd6f85 Kieran Bingham 2021-11-25 @641 int ret;
e7d888bbc365be LUU HOAI 2020-02-25 642
e7d888bbc365be LUU HOAI 2020-02-25 643 if (device->lanes > dsi->num_data_lanes)
e7d888bbc365be LUU HOAI 2020-02-25 644 return -EINVAL;
e7d888bbc365be LUU HOAI 2020-02-25 645
e7d888bbc365be LUU HOAI 2020-02-25 646 dsi->lanes = device->lanes;
e7d888bbc365be LUU HOAI 2020-02-25 647 dsi->format = device->format;
e7d888bbc365be LUU HOAI 2020-02-25 648
adffb421fe4941 Kieran Bingham 2021-11-30 649 dsi->next_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 1, 0);
adffb421fe4941 Kieran Bingham 2021-11-30 650 if (IS_ERR(dsi->next_bridge))
e1579d24bd6f85 Kieran Bingham 2021-11-25 651 return PTR_ERR(dsi->next_bridge);
e1579d24bd6f85 Kieran Bingham 2021-11-25 652
e1579d24bd6f85 Kieran Bingham 2021-11-25 653 /* Initialize the DRM bridge. */
e1579d24bd6f85 Kieran Bingham 2021-11-25 654 dsi->bridge.funcs = &rcar_mipi_dsi_bridge_ops;
e1579d24bd6f85 Kieran Bingham 2021-11-25 655 dsi->bridge.of_node = dsi->dev->of_node;
e1579d24bd6f85 Kieran Bingham 2021-11-25 656 drm_bridge_add(&dsi->bridge);
e1579d24bd6f85 Kieran Bingham 2021-11-25 657
e7d888bbc365be LUU HOAI 2020-02-25 658 return 0;
e7d888bbc365be LUU HOAI 2020-02-25 659 }
e7d888bbc365be LUU HOAI 2020-02-25 660
:::::: The code at line 641 was first introduced by commit
:::::: e1579d24bd6f85abc964af4637e471dd8f373e87 drm: rcar-du: mipi-dsi: Support bridge probe ordering
:::::: TO: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
:::::: CC: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
reply other threads:[~2021-12-05 17:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202112060148.ktFMJBbZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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 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.