undefined reference to `v4l2_device_unregister_subdev'

From: kernel test robot
Date: Sat Apr 02 2022 - 08:07:59 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 88e6c0207623874922712e162e25d9dafd39661e
commit: 63fe3d27b226fe01746bace4d1f1f2164406140d media: platform/*/Kconfig: make manufacturer menus more uniform
date: 2 weeks ago
config: nios2-randconfig-r033-20220401 (https://download.01.org/0day-ci/archive/20220402/202204021912.687fL7yR-lkp@xxxxxxxxx/config)
compiler: nios2-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=63fe3d27b226fe01746bace4d1f1f2164406140d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 63fe3d27b226fe01746bace4d1f1f2164406140d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 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 >>):

nios2-linux-ld: drivers/media/v4l2-core/v4l2-async.o: in function `match_i2c':
v4l2-async.c:(.text+0x2c0): undefined reference to `i2c_verify_client'
v4l2-async.c:(.text+0x2c0): relocation truncated to fit: R_NIOS2_CALL26 against `i2c_verify_client'
nios2-linux-ld: drivers/media/v4l2-core/v4l2-async.o: in function `v4l2_async_nf_unbind_all_subdevs':
v4l2-async.c:(.text+0xc00): undefined reference to `v4l2_device_unregister_subdev'
v4l2-async.c:(.text+0xc00): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_device_unregister_subdev'
nios2-linux-ld: drivers/media/v4l2-core/v4l2-async.o: in function `v4l2_async_match_notify':
v4l2-async.c:(.text+0xdb4): undefined reference to `v4l2_device_register_subdev'
v4l2-async.c:(.text+0xdb4): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_device_register_subdev'
nios2-linux-ld: v4l2-async.c:(.text+0xee8): undefined reference to `v4l2_device_unregister_subdev'
v4l2-async.c:(.text+0xee8): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_device_unregister_subdev'
nios2-linux-ld: drivers/media/v4l2-core/v4l2-async.o: in function `v4l2_async_register_subdev':
>> (.text+0x1160): undefined reference to `v4l2_device_unregister_subdev'
(.text+0x1160): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_device_unregister_subdev'
nios2-linux-ld: drivers/media/v4l2-core/v4l2-async.o: in function `v4l2_async_unregister_subdev':
(.text+0x1570): undefined reference to `v4l2_device_unregister_subdev'
(.text+0x1570): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_device_unregister_subdev'
nios2-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_notify_bound':
imx-mipi-csis.c:(.text+0x374): undefined reference to `v4l2_create_fwnode_links_to_pad'
imx-mipi-csis.c:(.text+0x374): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_create_fwnode_links_to_pad'
nios2-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_s_stream':
imx-mipi-csis.c:(.text+0x56c): undefined reference to `v4l2_subdev_call_wrappers'
>> nios2-linux-ld: imx-mipi-csis.c:(.text+0x570): undefined reference to `v4l2_subdev_call_wrappers'
nios2-linux-ld: imx-mipi-csis.c:(.text+0x5a4): undefined reference to `v4l2_subdev_call_wrappers'
nios2-linux-ld: imx-mipi-csis.c:(.text+0x5a8): undefined reference to `v4l2_subdev_call_wrappers'
>> nios2-linux-ld: imx-mipi-csis.c:(.text+0x60c): undefined reference to `v4l2_get_link_freq'
imx-mipi-csis.c:(.text+0x60c): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_get_link_freq'
nios2-linux-ld: imx-mipi-csis.c:(.text+0x6e4): undefined reference to `v4l2_subdev_call_wrappers'
nios2-linux-ld: imx-mipi-csis.c:(.text+0x6e8): undefined reference to `v4l2_subdev_call_wrappers'
nios2-linux-ld: imx-mipi-csis.c:(.text+0x788): undefined reference to `v4l2_subdev_call_wrappers'
nios2-linux-ld: imx-mipi-csis.c:(.text+0x78c): undefined reference to `v4l2_subdev_call_wrappers'
nios2-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_probe':
imx-mipi-csis.c:(.text+0xcc0): undefined reference to `v4l2_subdev_init'
imx-mipi-csis.c:(.text+0xcc0): relocation truncated to fit: R_NIOS2_CALL26 against `v4l2_subdev_init'
nios2-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_set_fmt':
imx-mipi-csis.c:(.text+0x146c): undefined reference to `v4l_bound_align_image'
imx-mipi-csis.c:(.text+0x146c): relocation truncated to fit: R_NIOS2_CALL26 against `v4l_bound_align_image'
>> nios2-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o:(.rodata+0x348): undefined reference to `v4l2_subdev_get_fwnode_pad_1_to_1'
>> nios2-linux-ld: drivers/media/platform/nxp/imx-mipi-csis.o:(.rodata+0x350): undefined reference to `v4l2_subdev_link_validate'

--
0-DAY CI Kernel Test Service
https://01.org/lkp