lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 18 May 2022 15:16:17 +0800
From:   kernel test robot <lkp@...el.com>
To:     Xin Ji <xji@...logixsemi.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Robert Foss <robert.foss@...aro.org>
Subject: [drm-misc:drm-misc-next 2/2]
 drivers/gpu/drm/bridge/analogix/anx7625.c:1643:18: error: use of undeclared
 identifier 'V4L2_FWNODE_BUS_TYPE_DPI'

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: arm-buildonly-randconfig-r001-20220518 (https://download.01.org/0day-ci/archive/20220518/202205181514.UVkvf0YL-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 853fa8ee225edf2d0de94b0dcbd31bea916e825e)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        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=clang make.cross W=1 O=build_dir ARCH=arm 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@...el.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/bridge/analogix/anx7625.c:1643:18: error: use of undeclared identifier 'V4L2_FWNODE_BUS_TYPE_DPI'
           if (bus_type == V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */
                           ^
   1 error generated.


vim +/V4L2_FWNODE_BUS_TYPE_DPI +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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ