The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Xin Ji <xji@analogixsemi.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Robert Foss <robert.foss@linaro.org>
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'?
Date: Wed, 18 May 2022 14:55:50 +0800	[thread overview]
Message-ID: <202205181409.YEDC8uiJ-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-05-18  6:56 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=202205181409.YEDC8uiJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robert.foss@linaro.org \
    --cc=xji@analogixsemi.com \
    /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