[pinchartl-media:drm/du/compile-test 10/14] drivers/gpu/drm/omapdrm/omap_drv.c:216:16: error: 'struct drm_bridge' has no member named 'of_node'

From: kernel test robot
Date: Wed Aug 04 2021 - 14:37:58 EST


Hi Laurent,

First bad commit (maybe != root cause):

tree: git://linuxtv.org/pinchartl/media.git drm/du/compile-test
head: 660500b4c311c0e60c5a05c603767cb4cac44751
commit: 803c26fc51916c74ab29809cea85e81f4e342a83 [10/14] drm/omap: Enable COMPILE_TEST on all architectures
config: i386-buildonly-randconfig-r004-20210804 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add pinchartl-media git://linuxtv.org/pinchartl/media.git
git fetch --no-tags pinchartl-media drm/du/compile-test
git checkout 803c26fc51916c74ab29809cea85e81f4e342a83
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/omapdrm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

drivers/gpu/drm/omapdrm/omap_drv.c: In function 'omap_display_id':
>> drivers/gpu/drm/omapdrm/omap_drv.c:216:16: error: 'struct drm_bridge' has no member named 'of_node'
216 | node = bridge->of_node;
| ^~
--
drivers/gpu/drm/omapdrm/dss/dpi.c: In function 'dpi_bridge_init':
>> drivers/gpu/drm/omapdrm/dss/dpi.c:564:13: error: 'struct drm_bridge' has no member named 'of_node'
564 | dpi->bridge.of_node = dpi->pdev->dev.of_node;
| ^
--
drivers/gpu/drm/omapdrm/dss/hdmi4.c: In function 'hdmi4_bridge_init':
>> drivers/gpu/drm/omapdrm/dss/hdmi4.c:500:14: error: 'struct drm_bridge' has no member named 'of_node'
500 | hdmi->bridge.of_node = hdmi->pdev->dev.of_node;
| ^
--
drivers/gpu/drm/omapdrm/dss/hdmi5.c: In function 'hdmi5_bridge_init':
>> drivers/gpu/drm/omapdrm/dss/hdmi5.c:483:14: error: 'struct drm_bridge' has no member named 'of_node'
483 | hdmi->bridge.of_node = hdmi->pdev->dev.of_node;
| ^


vim +216 drivers/gpu/drm/omapdrm/omap_drv.c

e2cd09b202c5d32 Laurent Pinchart 2015-03-06 205
79107f274b2fc6b Laurent Pinchart 2018-09-23 206 static int omap_display_id(struct omap_dss_device *output)
79107f274b2fc6b Laurent Pinchart 2018-09-23 207 {
79107f274b2fc6b Laurent Pinchart 2018-09-23 208 struct device_node *node = NULL;
79107f274b2fc6b Laurent Pinchart 2018-09-23 209
4a5555187d92808 Sebastian Reichel 2020-12-15 210 if (output->bridge) {
79107f274b2fc6b Laurent Pinchart 2018-09-23 211 struct drm_bridge *bridge = output->bridge;
79107f274b2fc6b Laurent Pinchart 2018-09-23 212
fadf872d9d9274a Boris Brezillon 2019-12-03 213 while (drm_bridge_get_next_bridge(bridge))
fadf872d9d9274a Boris Brezillon 2019-12-03 214 bridge = drm_bridge_get_next_bridge(bridge);
79107f274b2fc6b Laurent Pinchart 2018-09-23 215
79107f274b2fc6b Laurent Pinchart 2018-09-23 @216 node = bridge->of_node;
79107f274b2fc6b Laurent Pinchart 2018-09-23 217 }
79107f274b2fc6b Laurent Pinchart 2018-09-23 218
79107f274b2fc6b Laurent Pinchart 2018-09-23 219 return node ? of_alias_get_id(node, "display") : -ENODEV;
79107f274b2fc6b Laurent Pinchart 2018-09-23 220 }
79107f274b2fc6b Laurent Pinchart 2018-09-23 221

:::::: The code at line 216 was first introduced by commit
:::::: 79107f274b2fc6bce13f687de33c8d0b70994558 drm/omap: Add support for drm_bridge

:::::: TO: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
:::::: CC: Tomi Valkeinen <tomi.valkeinen@xxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip