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: x86_64-randconfig-r015-20211216
(
https://download.01.org/0day-ci/archive/20211217/202112171557.AF8ndfET-lk...)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
9043c3d65b11b442226015acfbf8167684586cfa)
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=clang make.cross W=1 O=build_dir
ARCH=x86_64 SHELL=/bin/bash drivers/media/v4l2-core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
> drivers/media/v4l2-core/v4l2-subdev.c:951:10: error: implicit
declaration of function '__v4l2_subdev_state_alloc'
[-Werror,-Wimplicit-function-declaration]
state =
__v4l2_subdev_state_alloc(sd);
^
> drivers/media/v4l2-core/v4l2-subdev.c:951:8: warning:
incompatible integer to pointer conversion assigning to 'struct v4l2_subdev_state
*' from 'int' [-Wint-conversion]
state =
__v4l2_subdev_state_alloc(sd);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/media/v4l2-core/v4l2-subdev.c:963:2: error: implicit
declaration of function '__v4l2_subdev_state_free'
[-Werror,-Wimplicit-function-declaration]
__v4l2_subdev_state_free(sd->active_state);
^
1 warning and 2 errors generated.
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