Messages in this thread | | | Date | Wed, 18 May 2022 14:55:50 +0800 | From | kernel test robot <> | Subject | [drm-misc:drm-misc-next 2/2] drivers/gpu/drm/bridge/analogix/anx7625.c:1643:25: error: 'V4L2_FWNODE_BUS_TYPE_DPI' undeclared; did you mean 'V4L2_FWNODE_BUS_TYPE_CCP2'? |
| |
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next head: 315a8d00ac74c59a688a1a88c0ed97a7791d1c91 commit: a77c2af0994e24ee36c7ffb6dc852770bdf06fb1 [2/2] drm/bridge: anx7625: Use DPI bus type config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20220518/202205181409.YEDC8uiJ-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add drm-misc git://anongit.freedesktop.org/drm/drm-misc git fetch --no-tags drm-misc drm-misc-next git checkout a77c2af0994e24ee36c7ffb6dc852770bdf06fb1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/gpu/drm/bridge/analogix/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/bridge/analogix/anx7625.c: In function 'anx7625_parse_dt': >> drivers/gpu/drm/bridge/analogix/anx7625.c:1643:25: error: 'V4L2_FWNODE_BUS_TYPE_DPI' undeclared (first use in this function); did you mean 'V4L2_FWNODE_BUS_TYPE_CCP2'? 1643 | if (bus_type == V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */ | ^~~~~~~~~~~~~~~~~~~~~~~~ | V4L2_FWNODE_BUS_TYPE_CCP2 drivers/gpu/drm/bridge/analogix/anx7625.c:1643:25: note: each undeclared identifier is reported only once for each function it appears in
vim +1643 drivers/gpu/drm/bridge/analogix/anx7625.c
1617 1618 static int anx7625_parse_dt(struct device *dev, 1619 struct anx7625_platform_data *pdata) 1620 { 1621 struct device_node *np = dev->of_node, *ep0; 1622 int bus_type, mipi_lanes; 1623 1624 anx7625_get_swing_setting(dev, pdata); 1625 1626 pdata->is_dpi = 0; /* default dsi mode */ 1627 pdata->mipi_host_node = of_graph_get_remote_node(np, 0, 0); 1628 if (!pdata->mipi_host_node) { 1629 DRM_DEV_ERROR(dev, "fail to get internal panel.\n"); 1630 return -ENODEV; 1631 } 1632 1633 bus_type = 0; 1634 mipi_lanes = MAX_LANES_SUPPORT; 1635 ep0 = of_graph_get_endpoint_by_regs(np, 0, 0); 1636 if (ep0) { 1637 if (of_property_read_u32(ep0, "bus-type", &bus_type)) 1638 bus_type = 0; 1639 1640 mipi_lanes = of_property_count_u32_elems(ep0, "data-lanes"); 1641 } 1642 > 1643 if (bus_type == V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */ 1644 pdata->is_dpi = 1; 1645 1646 pdata->mipi_lanes = mipi_lanes; 1647 if (pdata->mipi_lanes > MAX_LANES_SUPPORT || pdata->mipi_lanes <= 0) 1648 pdata->mipi_lanes = MAX_LANES_SUPPORT; 1649 1650 if (pdata->is_dpi) 1651 DRM_DEV_DEBUG_DRIVER(dev, "found MIPI DPI host node.\n"); 1652 else 1653 DRM_DEV_DEBUG_DRIVER(dev, "found MIPI DSI host node.\n"); 1654 1655 if (of_property_read_bool(np, "analogix,audio-enable")) 1656 pdata->audio_en = 1; 1657 1658 pdata->panel_bridge = devm_drm_of_get_bridge(dev, np, 1, 0); 1659 if (IS_ERR(pdata->panel_bridge)) { 1660 if (PTR_ERR(pdata->panel_bridge) == -ENODEV) 1661 return 0; 1662 1663 return PTR_ERR(pdata->panel_bridge); 1664 } 1665 1666 DRM_DEV_DEBUG_DRIVER(dev, "get panel node.\n"); 1667 1668 return 0; 1669 } 1670
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |