Re: [hverkuil-media-tree:zoran 37/59] csky-linux-ld: max96712.c:undefined reference to `v4l2_async_unregister_subdev'
From: Niklas Söderlund
Date: Mon Nov 08 2021 - 03:29:53 EST
Hello,
This is solved either by v4 of this MAX96712 patch (this is v3) or
on-top by Sakari in '[1/1] max96712: Select VIDEO_V4L2'.
On 2021-11-08 14:06:14 +0800, kernel test robot wrote:
> tree: git://linuxtv.org/hverkuil/media_tree.git zoran
> head: 7ce0d221dbb77d82ce789984dcee1fcc27d8f8f0
> commit: 118658ed37664dddbc8c0cd8006edc160528b6f7 [37/59] media: staging: max96712: Add basic support for MAX96712 GMSL2 deserializer
> config: csky-buildonly-randconfig-r005-20211104 (attached as .config)
> compiler: csky-linux-gcc (GCC) 11.2.0
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
> git fetch --no-tags hverkuil-media-tree zoran
> git checkout 118658ed37664dddbc8c0cd8006edc160528b6f7
> # save the attached .config to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> csky-linux-ld: drivers/staging/media/max96712/max96712.o: in function `max96712_remove':
> max96712.c:(.text+0x2e): undefined reference to `v4l2_async_unregister_subdev'
> >> csky-linux-ld: max96712.c:(.text+0x40): undefined reference to `v4l2_async_unregister_subdev'
> csky-linux-ld: drivers/staging/media/max96712/max96712.o: in function `max96712_probe':
> max96712.c:(.text+0x144): undefined reference to `v4l2_fwnode_endpoint_parse'
> >> csky-linux-ld: max96712.c:(.text+0x2a8): undefined reference to `v4l2_fwnode_endpoint_parse'
> >> csky-linux-ld: max96712.c:(.text+0x3a2): undefined reference to `v4l2_ctrl_handler_init_class'
> >> csky-linux-ld: max96712.c:(.text+0x3d4): undefined reference to `v4l2_ctrl_new_std'
> >> csky-linux-ld: max96712.c:(.text+0x3f0): undefined reference to `v4l2_ctrl_new_std_menu_items'
> >> csky-linux-ld: max96712.c:(.text+0x422): undefined reference to `v4l2_async_register_subdev'
> >> csky-linux-ld: max96712.c:(.text+0x43a): undefined reference to `v4l2_ctrl_handler_free'
> csky-linux-ld: max96712.c:(.text+0x480): undefined reference to `v4l2_ctrl_handler_init_class'
> csky-linux-ld: max96712.c:(.text+0x488): undefined reference to `v4l2_ctrl_new_std'
> csky-linux-ld: max96712.c:(.text+0x494): undefined reference to `v4l2_ctrl_new_std_menu_items'
> csky-linux-ld: max96712.c:(.text+0x49c): undefined reference to `v4l2_async_register_subdev'
> csky-linux-ld: max96712.c:(.text+0x4a4): undefined reference to `v4l2_ctrl_handler_free'
>
> Kconfig warnings: (for reference only)
> WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API
> Depends on MEDIA_SUPPORT && VIDEO_DEV && MEDIA_CONTROLLER
> Selected by
> - VIDEO_MAX96712 && STAGING && STAGING_MEDIA && MEDIA_SUPPORT && I2C && OF_GPIO
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
--
Kind Regards,
Niklas Söderlund