Messages in this thread | | | Date | Sat, 9 Apr 2022 06:43:12 +0800 | From | kernel test robot <> | Subject | [sailus-media-tree:master 29/30] drivers/media/v4l2-core/v4l2-subdev.c:1040:15: error: implicit declaration of function 'v4l2_subdev_get_pad_format'; did you mean 'v4l2_subdev_get_fmt'? |
| |
tree: git://linuxtv.org/sailus/media_tree.git master head: bd1d801f302289ddbf86ff6c38fcc91aef8e7609 commit: c503509891473482b5e88fd8c3d7b81015432f1c [29/30] media: subdev: add v4l2_subdev_get_fmt() helper function config: ia64-randconfig-r011-20220408 (https://download.01.org/0day-ci/archive/20220409/202204090639.C9t6QLg0-lkp@intel.com/config) compiler: ia64-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 sailus-media-tree git://linuxtv.org/sailus/media_tree.git git fetch --no-tags sailus-media-tree master git checkout c503509891473482b5e88fd8c3d7b81015432f1c # 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=ia64 SHELL=/bin/bash drivers/media/v4l2-core/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:153, from include/linux/pgtable.h:6, from include/linux/mm.h:29, from drivers/media/v4l2-core/v4l2-subdev.c:12: arch/ia64/include/asm/mmu_context.h: In function 'reload_context': arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable] 127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4; | ^~~~~~~ drivers/media/v4l2-core/v4l2-subdev.c: In function 'v4l2_subdev_get_fmt': >> drivers/media/v4l2-core/v4l2-subdev.c:1040:15: error: implicit declaration of function 'v4l2_subdev_get_pad_format'; did you mean 'v4l2_subdev_get_fmt'? [-Werror=implicit-function-declaration] 1040 | fmt = v4l2_subdev_get_pad_format(sd, state, format->pad); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | v4l2_subdev_get_fmt >> drivers/media/v4l2-core/v4l2-subdev.c:1040:13: warning: assignment to 'struct v4l2_mbus_framefmt *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1040 | fmt = v4l2_subdev_get_pad_format(sd, state, format->pad); | ^ cc1: some warnings being treated as errors
vim +1040 drivers/media/v4l2-core/v4l2-subdev.c
1031 1032 int v4l2_subdev_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, 1033 struct v4l2_subdev_format *format) 1034 { 1035 struct v4l2_mbus_framefmt *fmt; 1036 1037 if (format->pad >= sd->entity.num_pads) 1038 return -EINVAL; 1039 > 1040 fmt = v4l2_subdev_get_pad_format(sd, state, format->pad); 1041 if (!fmt) 1042 return -EINVAL; 1043 1044 format->format = *fmt; 1045 1046 return 0; 1047 } 1048 EXPORT_SYMBOL_GPL(v4l2_subdev_get_fmt); 1049
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |