tree: git://linuxtv.org/sailus/media_tree.git master head: fe3eff3ec489e6ea226ac38fe84d40583fe4298b commit: 5a073632109dd9a9721812f43ce272e0f7859fa7 [50/68] media: i2c: ov2685: Add .get_selection() support config: arc-buildonly-randconfig-r001-20230312 (https://download.01.org/0day-ci/archive/20230316/202303160714.dOJ3WZdw-lkp@xxxxxxxxx/config) compiler: arc-elf-gcc (GCC) 12.1.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 sailus-media-tree git://linuxtv.org/sailus/media_tree.git git fetch --no-tags sailus-media-tree master git checkout 5a073632109dd9a9721812f43ce272e0f7859fa7 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/media/i2c/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Link: https://lore.kernel.org/oe-kbuild-all/202303160714.dOJ3WZdw-lkp@xxxxxxxxx/ All error/warnings (new ones prefixed by >>): drivers/media/i2c/ov2685.c: In function '__ov2685_get_pad_crop': >> drivers/media/i2c/ov2685.c:408:24: error: implicit declaration of function 'v4l2_subdev_get_try_crop' [-Werror=implicit-function-declaration] 408 | return v4l2_subdev_get_try_crop(&ov2685->subdev, state, pad); | ^~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/media/i2c/ov2685.c:408:24: warning: returning 'int' from a function with return type 'const struct v4l2_rect *' makes pointer from integer without a cast [-Wint-conversion] 408 | return v4l2_subdev_get_try_crop(&ov2685->subdev, state, pad); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/v4l2_subdev_get_try_crop +408 drivers/media/i2c/ov2685.c 398 399 static const struct v4l2_rect * 400 __ov2685_get_pad_crop(struct ov2685 *ov2685, 401 struct v4l2_subdev_state *state, unsigned int pad, 402 enum v4l2_subdev_format_whence which) 403 { 404 const struct ov2685_mode *mode = ov2685->cur_mode; 405 406 switch (which) { 407 case V4L2_SUBDEV_FORMAT_TRY: > 408 return v4l2_subdev_get_try_crop(&ov2685->subdev, state, pad); 409 case V4L2_SUBDEV_FORMAT_ACTIVE: 410 return mode->analog_crop; 411 } 412 413 return NULL; 414 } 415 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests