Re: [PATCH v2 4/8] v4l: async: Provide interoperability between OF and fwnode matching

[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-x016-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/media/v4l2-core/v4l2-async.c: In function 'match_of':
>> drivers/media/v4l2-core/v4l2-async.c:63:6: error: implicit declaration of function 'of_fwnode_handle' [-Werror=implicit-function-declaration]
         of_fwnode_handle(sd->of_node) : sd->fwnode,
         ^~~~~~~~~~~~~~~~
>> drivers/media/v4l2-core/v4l2-async.c:63:36: warning: pointer/integer type mismatch in conditional expression
         of_fwnode_handle(sd->of_node) : sd->fwnode,
                                       ^
>> drivers/media/v4l2-core/v4l2-async.c:64:6: warning: passing argument 2 of 'fwnode_cmp' makes pointer from integer without a cast [-Wint-conversion]
         of_fwnode_handle(asd->match.of.node));
         ^~~~~~~~~~~~~~~~
   drivers/media/v4l2-core/v4l2-async.c:44:13: note: expected 'struct fwnode_handle *' but argument is of type 'int'
    static bool fwnode_cmp(struct fwnode_handle *one,
                ^~~~~~~~~~
   drivers/media/v4l2-core/v4l2-async.c: In function 'match_fwnode':
   drivers/media/v4l2-core/v4l2-async.c:70:36: warning: pointer/integer type mismatch in conditional expression
         of_fwnode_handle(sd->of_node) : sd->fwnode,
                                       ^
   cc1: some warnings being treated as errors

vim +/of_fwnode_handle +63 drivers/media/v4l2-core/v4l2-async.c

    57			return one == theother;
    58	}
    59	
    60	static bool match_of(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd)
    61	{
    62		return fwnode_cmp(sd->of_node ?
  > 63				  of_fwnode_handle(sd->of_node) : sd->fwnode,
  > 64				  of_fwnode_handle(asd->match.of.node));
    65	}
    66	
    67	static bool match_fwnode(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd)

---
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]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux