CC: [email protected] CC: [email protected] TO: Kieran Bingham <[email protected]>
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 <[email protected]> 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 <[email protected]> :::::: CC: Kieran Bingham <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
