Re: [PATCH v2 5/8] v4l: Switch from V4L2 OF not V4L2 fwnode API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Sakari,

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on next-20170406]
[cannot apply to v4.11-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Sakari-Ailus/v4l-flash-led-class-Use-fwnode_handle-instead-of-device_node-in-init/20170407-133451
base:   git://linuxtv.org/media_tree.git master
config: i386-randconfig-x011-201714 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/media//i2c/s5k5baf.c:33:0:
   include/media/v4l2-fwnode.h:67:25: error: field 'base' has incomplete type
     struct fwnode_endpoint base;
                            ^~~~
   drivers/media//i2c/s5k5baf.c: In function 's5k5baf_parse_device_node':
>> drivers/media//i2c/s5k5baf.c:1871:35: error: implicit declaration of function 'of_fwnode_handle' [-Werror=implicit-function-declaration]
     ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(node_ep), &ep);
                                      ^~~~~~~~~~~~~~~~
>> drivers/media//i2c/s5k5baf.c:1871:35: warning: passing argument 1 of 'v4l2_fwnode_endpoint_parse' makes pointer from integer without a cast [-Wint-conversion]
   In file included from drivers/media//i2c/s5k5baf.c:33:0:
   include/media/v4l2-fwnode.h:95:5: note: expected 'struct fwnode_handle *' but argument is of type 'int'
    int v4l2_fwnode_endpoint_parse(struct fwnode_handle *fwn,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/media//i2c/tc358743.c:45:0:
   include/media/v4l2-fwnode.h:67:25: error: field 'base' has incomplete type
     struct fwnode_endpoint base;
                            ^~~~
   drivers/media//i2c/tc358743.c: In function 'tc358743_probe_of':
>> drivers/media//i2c/tc358743.c:1719:46: error: implicit declaration of function 'of_fwnode_handle' [-Werror=implicit-function-declaration]
     endpoint = v4l2_fwnode_endpoint_alloc_parse(of_fwnode_handle(ep));
                                                 ^~~~~~~~~~~~~~~~
>> drivers/media//i2c/tc358743.c:1719:46: warning: passing argument 1 of 'v4l2_fwnode_endpoint_alloc_parse' makes pointer from integer without a cast [-Wint-conversion]
   In file included from drivers/media//i2c/tc358743.c:45:0:
   include/media/v4l2-fwnode.h:97:30: note: expected 'struct fwnode_handle *' but argument is of type 'int'
    struct v4l2_fwnode_endpoint *v4l2_fwnode_endpoint_alloc_parse(
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/of_fwnode_handle +1871 drivers/media//i2c/s5k5baf.c

  1865		if (!node_ep) {
  1866			dev_err(dev, "no endpoint defined at node %s\n",
  1867				node->full_name);
  1868			return -EINVAL;
  1869		}
  1870	
> 1871		ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(node_ep), &ep);
  1872		of_node_put(node_ep);
  1873		if (ret)
  1874			return ret;

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux