Re: [PATCH v2 1/8] v4l: flash led class: Use fwnode_handle instead of device_node in init

[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 v4.11-rc5 next-20170406]
[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-x014-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 >>):

   drivers//leds/leds-max77693.c: In function 'max77693_register_led':
>> drivers//leds/leds-max77693.c:933:45: error: implicit declaration of function 'of_fwnode_handle' [-Werror=implicit-function-declaration]
     sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node),
                                                ^~~~~~~~~~~~~~~~
>> drivers//leds/leds-max77693.c:933:45: warning: passing argument 2 of 'v4l2_flash_init' makes pointer from integer without a cast [-Wint-conversion]
   In file included from drivers//leds/leds-max77693.c:23:0:
   include/media/v4l2-flash-led-class.h:140:34: note: expected 'struct device_node *' but argument is of type 'int'
    static inline struct v4l2_flash *v4l2_flash_init(
                                     ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/of_fwnode_handle +933 drivers//leds/leds-max77693.c

   927		if (ret < 0)
   928			return ret;
   929	
   930		max77693_init_v4l2_flash_config(sub_led, led_cfg, &v4l2_sd_cfg);
   931	
   932		/* Register in the V4L2 subsystem. */
 > 933		sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node),
   934						      fled_cdev, NULL, &v4l2_flash_ops,
   935						      &v4l2_sd_cfg);
   936		if (IS_ERR(sub_led->v4l2_flash)) {

---
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