From: kernel test robot <lkp@intel.com>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [linux-next:master 10241/12559] drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:9: warning: assignment to 'struct drm_bridge *' from 'int' makes pointer from integer without a cast
Date: Wed, 30 Sep 2026 20:51:10 +0200 [thread overview]
Message-ID: <202609302014.WoEXKnE8-lkp@intel.com> (raw)
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: 6c2cb8b8b843d216ab549b678a0d8831c43153e0
commit: aa8a8c7e4641ebcef02dd6fa387ca334857367f4 [10241/12559] drm/bridge: panel: move all code to drm_panel.c
config: parisc-randconfig-r2200-20260930 (https://download.01.org/0day-ci/archive/20260930/202609302014.WoEXKnE8-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 10.5.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260930/202609302014.WoEXKnE8-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/202609302014.WoEXKnE8-lkp@intel.com/
All warnings (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:11: error: implicit declaration of function 'devm_drm_of_get_bridge'; did you mean 'devm_drm_put_bridge'? [-Werror=implicit-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:9: warning: 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);
| ^
cc1: some warnings being treated as errors
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
reply other threads:[~2026-09-30 18:52 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=202609302014.WoEXKnE8-lkp@intel.com \
--to=lkp@intel.com \
--cc=luca.ceresoli@bootlin.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.