From: kernel test robot <lkp@intel.com>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [linux-next:master 11138/11456] drivers/gpu/drm/verisilicon/vs_bridge.c:306:9: error: call to undeclared function 'devm_drm_of_get_bridge'; ISO C99 and later do not support implicit function declarations
Date: Tue, 29 Sep 2026 11:59:45 +0800 [thread overview]
Message-ID: <202609291109.OIsGTysr-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: 6375e61c01e93e35ee7acd336a689ac1fae4b509
commit: aa8a8c7e4641ebcef02dd6fa387ca334857367f4 [11138/11456] drm/bridge: panel: move all code to drm_panel.c
config: i386-buildonly-randconfig-1005-20260929 (https://download.01.org/0day-ci/archive/20260929/202609291109.OIsGTysr-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260929/202609291109.OIsGTysr-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.OIsGTysr-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/verisilicon/vs_bridge.c:306:9: error: call to undeclared function 'devm_drm_of_get_bridge'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
306 | next = devm_drm_of_get_bridge(drm_dev->dev, drm_dev->dev->of_node,
| ^
drivers/gpu/drm/verisilicon/vs_bridge.c:306:9: note: did you mean 'devm_drm_put_bridge'?
include/drm/drm_bridge.h:1525:6: note: 'devm_drm_put_bridge' declared here
1525 | void devm_drm_put_bridge(struct device *dev, struct drm_bridge *bridge);
| ^
>> drivers/gpu/drm/verisilicon/vs_bridge.c:306:7: error: incompatible integer to pointer conversion assigning to 'struct drm_bridge *' from 'int' [-Wint-conversion]
306 | next = devm_drm_of_get_bridge(drm_dev->dev, drm_dev->dev->of_node,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
307 | output, intf);
| ~~~~~~~~~~~~~
2 errors generated.
--
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:11: error: call to undeclared function 'devm_drm_of_get_bridge'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
336 | bridge = devm_drm_of_get_bridge(dsi->dev, dsi->dev->of_node, 1, 0);
| ^
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:11: note: did you mean 'devm_drm_put_bridge'?
include/drm/drm_bridge.h:1525:6: note: 'devm_drm_put_bridge' declared here
1525 | void devm_drm_put_bridge(struct device *dev, struct drm_bridge *bridge);
| ^
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:336:9: error: incompatible integer to pointer conversion assigning to 'struct drm_bridge *' from 'int' [-Wint-conversion]
336 | bridge = devm_drm_of_get_bridge(dsi->dev, dsi->dev->of_node, 1, 0);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
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 +/devm_drm_of_get_bridge +306 drivers/gpu/drm/verisilicon/vs_bridge.c
dbf21777caa8b8c Icenowy Zheng 2026-01-29 288
dbf21777caa8b8c Icenowy Zheng 2026-01-29 289 struct vs_bridge *vs_bridge_init(struct drm_device *drm_dev,
dbf21777caa8b8c Icenowy Zheng 2026-01-29 290 struct vs_crtc *crtc)
dbf21777caa8b8c Icenowy Zheng 2026-01-29 291 {
dbf21777caa8b8c Icenowy Zheng 2026-01-29 292 unsigned int output = crtc->id;
dbf21777caa8b8c Icenowy Zheng 2026-01-29 293 struct vs_bridge *bridge;
dbf21777caa8b8c Icenowy Zheng 2026-01-29 294 struct drm_bridge *next;
dbf21777caa8b8c Icenowy Zheng 2026-01-29 295 enum vs_bridge_output_interface intf;
dbf21777caa8b8c Icenowy Zheng 2026-01-29 296 const struct drm_bridge_funcs *bridge_funcs;
dbf21777caa8b8c Icenowy Zheng 2026-01-29 297 int ret, enctype;
dbf21777caa8b8c Icenowy Zheng 2026-01-29 298
dbf21777caa8b8c Icenowy Zheng 2026-01-29 299 intf = vs_bridge_detect_output_interface(drm_dev->dev->of_node,
dbf21777caa8b8c Icenowy Zheng 2026-01-29 300 output);
dbf21777caa8b8c Icenowy Zheng 2026-01-29 301 if (intf == -ENODEV) {
dbf21777caa8b8c Icenowy Zheng 2026-01-29 302 drm_dbg(drm_dev, "Skipping output %u\n", output);
dbf21777caa8b8c Icenowy Zheng 2026-01-29 303 return NULL;
dbf21777caa8b8c Icenowy Zheng 2026-01-29 304 }
dbf21777caa8b8c Icenowy Zheng 2026-01-29 305
dbf21777caa8b8c Icenowy Zheng 2026-01-29 @306 next = devm_drm_of_get_bridge(drm_dev->dev, drm_dev->dev->of_node,
:::::: The code at line 306 was first introduced by commit
:::::: dbf21777caa8b8c88c12f7f036b01208fec0d55a drm: verisilicon: add a driver for Verisilicon display controllers
:::::: TO: Icenowy Zheng <uwu@icenowy.me>
:::::: CC: Thomas Zimmermann <tzimmermann@suse.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-29 4:00 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=202609291109.OIsGTysr-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox