Hi Sakari,

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on next-20170213]
[cannot apply to v4.10-rc8]
[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/20170213-213642
base:   git://linuxtv.org/media_tree.git master
config: i386-randconfig-x004-201707 (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

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

Reply via email to