Messages in this thread | | | Date | Thu, 8 Sep 2022 05:15:01 +0800 | From | kernel test robot <> | Subject | [pinchartl-media:streams/v6.0/v11 27/49] drivers/media/v4l2-core/v4l2-subdev.c:156:8: error: call to undeclared function 'v4l2_subdev_state_get_stream_format'; ISO C99 and later do not support implicit function declarations |
| |
tree: git://linuxtv.org/pinchartl/media.git streams/v6.0/v11 head: c8cf58f00bee6d4f43462b3e3f83ef516c594d61 commit: 46db369d5850a9ac814a5ac236a4d39e390ca217 [27/49] media: subdev: add stream based configuration config: arm-randconfig-r002-20220907 (https://download.01.org/0day-ci/archive/20220908/202209080505.7TfHX43B-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c55b41d5199d2394dd6cdb8f52180d8b81d809d4) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi git remote add pinchartl-media git://linuxtv.org/pinchartl/media.git git fetch --no-tags pinchartl-media streams/v6.0/v11 git checkout 46db369d5850a9ac814a5ac236a4d39e390ca217 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/media/v4l2-core/
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/media/v4l2-core/v4l2-subdev.c:156:8: error: call to undeclared function 'v4l2_subdev_state_get_stream_format'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!v4l2_subdev_state_get_stream_format(state, pad, stream)) ^ 1 error generated.
vim +/v4l2_subdev_state_get_stream_format +156 drivers/media/v4l2-core/v4l2-subdev.c
150 151 static int check_state(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, 152 u32 which, u32 pad, u32 stream) 153 { 154 #if defined(CONFIG_MEDIA_CONTROLLER) 155 if (sd->flags & V4L2_SUBDEV_FL_MULTIPLEXED) { > 156 if (!v4l2_subdev_state_get_stream_format(state, pad, stream)) 157 return -EINVAL; 158 return 0; 159 } 160 #endif 161 162 if (which == V4L2_SUBDEV_FORMAT_TRY && (!state || !state->pads)) 163 return -EINVAL; 164 165 return 0; 166 } 167
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |