Messages in this thread | | | Date | Fri, 17 Dec 2021 15:19:47 +0800 | From | kernel test robot <> | Subject | [pinchartl-media:gmsl/max9286/bindings 2/45] drivers/media/v4l2-core/v4l2-subdev.c:951:17: error: implicit declaration of function '__v4l2_subdev_state_alloc' |
| |
tree: git://linuxtv.org/pinchartl/media.git gmsl/max9286/bindings head: b551a93fb443867f1a950d6063910639bd303daf commit: 3e5486c9f448f3d9067b1050ed189db7d062fdf4 [2/45] media: subdev: add active state to struct v4l2_subdev config: sparc64-randconfig-r014-20211216 (https://download.01.org/0day-ci/archive/20211217/202112171508.QfPJWLAu-lkp@intel.com/config) compiler: sparc64-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 pinchartl-media git://linuxtv.org/pinchartl/media.git git fetch --no-tags pinchartl-media gmsl/max9286/bindings git checkout 3e5486c9f448f3d9067b1050ed189db7d062fdf4 # 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=sparc64 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 >>):
drivers/media/v4l2-core/v4l2-subdev.c: In function 'v4l2_subdev_init_finalize': >> drivers/media/v4l2-core/v4l2-subdev.c:951:17: error: implicit declaration of function '__v4l2_subdev_state_alloc' [-Werror=implicit-function-declaration] 951 | state = __v4l2_subdev_state_alloc(sd); | ^~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/media/v4l2-core/v4l2-subdev.c:951:15: warning: assignment to 'struct v4l2_subdev_state *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 951 | state = __v4l2_subdev_state_alloc(sd); | ^ drivers/media/v4l2-core/v4l2-subdev.c: In function 'v4l2_subdev_cleanup': >> drivers/media/v4l2-core/v4l2-subdev.c:963:9: error: implicit declaration of function '__v4l2_subdev_state_free' [-Werror=implicit-function-declaration] 963 | __v4l2_subdev_state_free(sd->active_state); | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +/__v4l2_subdev_state_alloc +951 drivers/media/v4l2-core/v4l2-subdev.c
946 947 int v4l2_subdev_init_finalize(struct v4l2_subdev *sd) 948 { 949 struct v4l2_subdev_state *state; 950 > 951 state = __v4l2_subdev_state_alloc(sd); 952 if (IS_ERR(state)) 953 return PTR_ERR(state); 954 955 sd->active_state = state; 956 957 return 0; 958 } 959 EXPORT_SYMBOL_GPL(v4l2_subdev_init_finalize); 960 961 void v4l2_subdev_cleanup(struct v4l2_subdev *sd) 962 { > 963 __v4l2_subdev_state_free(sd->active_state);
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |