* [sailus-media-tree:master 50/68] drivers/media/i2c/ov2685.c:408:24: error: implicit declaration of function 'v4l2_subdev_get_try_crop'
@ 2023-03-15 23:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-15 23:39 UTC (permalink / raw)
To: Luca Weiss; +Cc: oe-kbuild-all, linux-media, Sakari Ailus, Jacopo Mondi
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@intel.com/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@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303160714.dOJ3WZdw-lkp@intel.com/
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-15 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 23:39 [sailus-media-tree:master 50/68] drivers/media/i2c/ov2685.c:408:24: error: implicit declaration of function 'v4l2_subdev_get_try_crop' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).