* [linux-next:master 11138/11456] drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:18: error: implicit declaration of function 'devm_drm_of_get_bridge'; did you mean 'devm_drm_put_bridge'?
@ 2026-09-29 3:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-29 3:59 UTC (permalink / raw)
To: Luca Ceresoli; +Cc: oe-kbuild-all
Hi Luca,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6375e61c01e93e35ee7acd336a689ac1fae4b509
commit: aa8a8c7e4641ebcef02dd6fa387ca334857367f4 [11138/11456] drm/bridge: panel: move all code to drm_panel.c
config: i386-buildonly-randconfig-1001-20260929 (https://download.01.org/0day-ci/archive/20260929/202609291109.9RGna4XZ-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260929/202609291109.9RGna4XZ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609291109.9RGna4XZ-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c: In function 'dw_mipi_dsi_host_attach':
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:18: error: implicit declaration of function 'devm_drm_of_get_bridge'; did you mean 'devm_drm_put_bridge'? [-Wimplicit-function-declaration]
336 | bridge = devm_drm_of_get_bridge(dsi->dev, dsi->dev->of_node, 1, 0);
| ^~~~~~~~~~~~~~~~~~~~~~
| devm_drm_put_bridge
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:16: error: assignment to 'struct drm_bridge *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
336 | bridge = devm_drm_of_get_bridge(dsi->dev, dsi->dev->of_node, 1, 0);
| ^
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF
Depends on [n]: PM_GENERIC_DOMAINS [=y] && OF [=n]
Selected by [y]:
- COMMON_CLK_MT8173_MFGTOP [=y] && COMMON_CLK [=y] && (ARCH_MEDIATEK || COMPILE_TEST [=y]) && COMMON_CLK_MT8173 [=y] && PM [=y]
vim +336 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
46fc51546d4406 Philippe CORNU 2017-07-17 316
46fc51546d4406 Philippe CORNU 2017-07-17 317 static int dw_mipi_dsi_host_attach(struct mipi_dsi_host *host,
46fc51546d4406 Philippe CORNU 2017-07-17 318 struct mipi_dsi_device *device)
46fc51546d4406 Philippe CORNU 2017-07-17 319 {
46fc51546d4406 Philippe CORNU 2017-07-17 320 struct dw_mipi_dsi *dsi = host_to_dsi(host);
90910a6511238d Heiko Stuebner 2018-10-01 321 const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data;
65af9070cd09a9 Jagan Teki 2022-03-31 322 struct drm_bridge *bridge;
46fc51546d4406 Philippe CORNU 2017-07-17 323 int ret;
46fc51546d4406 Philippe CORNU 2017-07-17 324
46fc51546d4406 Philippe CORNU 2017-07-17 325 if (device->lanes > dsi->plat_data->max_data_lanes) {
46fc51546d4406 Philippe CORNU 2017-07-17 326 dev_err(dsi->dev, "the number of data lanes(%u) is too many\n",
46fc51546d4406 Philippe CORNU 2017-07-17 327 device->lanes);
46fc51546d4406 Philippe CORNU 2017-07-17 328 return -EINVAL;
46fc51546d4406 Philippe CORNU 2017-07-17 329 }
46fc51546d4406 Philippe CORNU 2017-07-17 330
46fc51546d4406 Philippe CORNU 2017-07-17 331 dsi->lanes = device->lanes;
46fc51546d4406 Philippe CORNU 2017-07-17 332 dsi->channel = device->channel;
46fc51546d4406 Philippe CORNU 2017-07-17 333 dsi->format = device->format;
46fc51546d4406 Philippe CORNU 2017-07-17 334 dsi->mode_flags = device->mode_flags;
46fc51546d4406 Philippe CORNU 2017-07-17 335
1c74c1fb83ebb4 Jagan Teki 2022-03-31 @336 bridge = devm_drm_of_get_bridge(dsi->dev, dsi->dev->of_node, 1, 0);
65af9070cd09a9 Jagan Teki 2022-03-31 337 if (IS_ERR(bridge))
65af9070cd09a9 Jagan Teki 2022-03-31 338 return PTR_ERR(bridge);
46fc51546d4406 Philippe CORNU 2017-07-17 339
05aa61334592ad Ondrej Jirman 2023-06-18 340 bridge->pre_enable_prev_first = true;
65af9070cd09a9 Jagan Teki 2022-03-31 341 dsi->panel_bridge = bridge;
65af9070cd09a9 Jagan Teki 2022-03-31 342
65af9070cd09a9 Jagan Teki 2022-03-31 343 drm_bridge_add(&dsi->bridge);
65af9070cd09a9 Jagan Teki 2022-03-31 344
90910a6511238d Heiko Stuebner 2018-10-01 345 if (pdata->host_ops && pdata->host_ops->attach) {
90910a6511238d Heiko Stuebner 2018-10-01 346 ret = pdata->host_ops->attach(pdata->priv_data, device);
90910a6511238d Heiko Stuebner 2018-10-01 347 if (ret < 0)
be19b43f92fae4 Osama Abdelkader 2026-04-03 348 goto err_remove_bridge;
90910a6511238d Heiko Stuebner 2018-10-01 349 }
90910a6511238d Heiko Stuebner 2018-10-01 350
46fc51546d4406 Philippe CORNU 2017-07-17 351 return 0;
be19b43f92fae4 Osama Abdelkader 2026-04-03 352
be19b43f92fae4 Osama Abdelkader 2026-04-03 353 err_remove_bridge:
be19b43f92fae4 Osama Abdelkader 2026-04-03 354 drm_bridge_remove(&dsi->bridge);
be19b43f92fae4 Osama Abdelkader 2026-04-03 355 return ret;
46fc51546d4406 Philippe CORNU 2017-07-17 356 }
46fc51546d4406 Philippe CORNU 2017-07-17 357
:::::: The code at line 336 was first introduced by commit
:::::: 1c74c1fb83ebb414c017d459e7875abe777654d7 drm: bridge: dw-mipi-dsi: Switch to devm_drm_of_get_bridge
:::::: TO: Jagan Teki <jagan@amarulasolutions.com>
:::::: CC: Robert Foss <robert.foss@linaro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-29 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-29 3:59 [linux-next:master 11138/11456] drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:18: error: implicit declaration of function 'devm_drm_of_get_bridge'; did you mean 'devm_drm_put_bridge'? 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.