[arm:csi-v6 3/5] drivers/media/i2c/imx219.c:2748:28: error: 'V4L2_MBUS_CSI2' undeclared; did you mean 'V4L2_MBUS_CSI1'?

From: kbuild test robot <hidden>
Date: 2018-12-20 18:15:31

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git csi-v6
head:   787eec29b136e015f9f10ba0475c800a43dc9f65
commit: 2aaa1f8a02040955a755baa0e39d5f1c3c33c8e7 [3/5] media: i2c: imx219 camera driver
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 2aaa1f8a02040955a755baa0e39d5f1c3c33c8e7
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the arm/csi-v6 HEAD 787eec29b136e015f9f10ba0475c800a43dc9f65 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/media/i2c/imx219.c: In function 'imx219_parse_dt':
quoted
drivers/media/i2c/imx219.c:2748:28: error: 'V4L2_MBUS_CSI2' undeclared (first use in this function); did you mean 'V4L2_MBUS_CSI1'?
      if (endpoint.bus_type != V4L2_MBUS_CSI2) {
                               ^~~~~~~~~~~~~~
                               V4L2_MBUS_CSI1
   drivers/media/i2c/imx219.c:2748:28: note: each undeclared identifier is reported only once for each function it appears in

vim +2748 drivers/media/i2c/imx219.c

  2726	
  2727	static int imx219_parse_dt(struct imx219_private *priv, struct device *dev)
  2728	{
  2729		struct device_node *ep;
  2730		u32 val;
  2731		int err = 0;
  2732	
  2733		val = priv->mipi_vc;
  2734		of_property_read_u32(dev->of_node, "virtual-channel", &val);
  2735		priv->mipi_vc = val;
  2736	
  2737		for_each_endpoint_of_node(dev->of_node, ep) {
  2738			struct v4l2_fwnode_endpoint endpoint = { };
  2739			int i;
  2740	
  2741			v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &endpoint);
  2742			if (endpoint.base.port != 0) {
  2743				dev_err(dev, "imx219 only has one endpoint\n");
  2744				err = -EINVAL;
  2745				break;
  2746			}
  2747	
2748			if (endpoint.bus_type != V4L2_MBUS_CSI2) {
  2749				dev_err(dev, "imx219 requires a CSI2 endpoint\n");
  2750				err = -EINVAL;
  2751				break;
  2752			}
  2753	
  2754			if (endpoint.bus.mipi_csi2.clock_lane ||
  2755			    endpoint.bus.mipi_csi2.lane_polarities[0]) {
  2756				dev_err(dev, "bad clock lane configuration\n");
  2757				err = -EINVAL;
  2758				break;
  2759			}
  2760	
  2761			if (endpoint.bus.mipi_csi2.flags !=
  2762			    V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK) {
  2763				dev_err(dev, "clock must be non-continuous\n");
  2764				err = -EINVAL;
  2765				break;
  2766			}
  2767	
  2768			priv->mipi_lanes = endpoint.bus.mipi_csi2.num_data_lanes;
  2769			for (i = 0; i < priv->mipi_lanes; i++)
  2770				if (endpoint.bus.mipi_csi2.data_lanes[i] != i + 1 ||
  2771				    endpoint.bus.mipi_csi2.lane_polarities[i + 1])
  2772					break;
  2773	
  2774			if (i != priv->mipi_lanes) {
  2775				dev_err(dev, "bad data line configuration at index %d\n", i);
  2776				err = -EINVAL;
  2777				break;
  2778			}
  2779		}
  2780	
  2781		if (err)
  2782			of_node_put(ep);
  2783	
  2784		return err;
  2785	}
  2786	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help